Error Tracking

Airflow can be set up to send errors to Sentry.

Setup

First you must install sentry requirement:

pip install 'apache-airflow[sentry]'

Add your SENTRY_DSN to your configuration file e.g. airflow.cfg under [sentry]. Its template resembles the following: '{PROTOCOL}://{PUBLIC_KEY}@{HOST}/{PROJECT_ID}'

[sentry]
sentry_dsn = http://[email protected]/123

Note

If this value is not provided, the SDK will try to read it from the SENTRY_DSN environment variable.

Tags

Name

Description

dag_id

Dag name of the dag that failed

task_id

Task name of the task that failed

execution_date

Execution date when the task failed

operator

Operator name of the task that failed