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 DSN 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.