sentry_airflow
sentry_airflow copied to clipboard
Defining sentry event custom tag in airflow.cfg
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
You can use the environment variable SENTRY_ENVIRONMENT and it'll automatically tag the correct env on the sentry event