Apache Airflow

Apache Airflow 1.10.6 and above can be set up to send errors to Sentry.

Installation

Install the apache-airflow package with the sentry requirement.

Copied
pip install 'apache-airflow[sentry]'

Then, add your Sentry

DSNThe Data Source Name (DSN) key tells the Sentry SDK where to send events, ensuring they go to the right project.
to your configuration file (ex. airflow.cfg) under the [sentry] field.

airflow.cfg
Copied
[sentry]
sentry_dsn = https://examplePublicKey@o0.ingest.sentry.io/0

Now, Airflow should report errors to Sentry automatically. Airflow will also generate custom tags and breadcrumbs based on the current Directed Acyclic Graph (DAG) and tasks at the time of the error.

Please see the official Apache Airflow documentation for more details.

Configuration

Please see the official Apache Airflow documentation for the full list of configuration options available.

Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").