Apache Airflow
Apache Airflow 1.10.6 and above can be set up to send errors to Sentry.
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.
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").
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").
- Package:
- pypi:sentry-sdk
- Version:
- 2.0.0
- Repository:
- https://github.com/getsentry/sentry-python
- API Documentation:
- https://getsentry.github.io/sentry-python/