sentry_airflow icon indicating copy to clipboard operation
sentry_airflow copied to clipboard

Defining sentry event custom tag in airflow.cfg

Open acceptMyPR opened this issue 5 years ago • 1 comments

Hi If we have 1 project in sentry for airflow and i have 3 sites with airflow (dev,stage,prod) we need to be able to set the tag in the airflow config in the sentry section for sentry to be able to distinguish where the event came from

For example:

[sentry]
sentry_dsn = https://[email protected]/16
sentry_custom_tag = stand = develop

acceptMyPR avatar Oct 07 '20 10:10 acceptMyPR

You can use the environment variable SENTRY_ENVIRONMENT and it'll automatically tag the correct env on the sentry event

AxelFurlanF avatar Jun 15 '23 20:06 AxelFurlanF