---
title: "Apache Airflow"
description: "Learn about using Sentry with Apache Airflow."
url: https://docs.sentry.io/platforms/python/integrations/airflow/
---

# Apache Airflow | Sentry for Python

[Apache Airflow](https://airflow.apache.org/) **1.10.6** and above can be set up to send errors to Sentry.

## [Installation](https://docs.sentry.io/platforms/python/integrations/airflow.md#installation)

Install the `apache-airflow` package with the `sentry` requirement.

```bash
pip install "apache-airflow[sentry]"
```

Then, add your Sentry DSN to your configuration file (ex. `airflow.cfg`) under the `[sentry]` field.

`airflow.cfg`

```ini
[sentry]
sentry_dsn = ___PUBLIC_DSN___
```

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](https://airflow.apache.org/docs/stable/errors.html) for more details.

### [Configuration](https://docs.sentry.io/platforms/python/integrations/airflow.md#configuration)

Please see the official [Apache Airflow documentation](https://airflow.apache.org/docs/stable/configurations-ref.html#sentry) for the full list of configuration options available.
