Skip to content
Airflow integration with Sentry (
Branch: master
Clone or download
tiopi Plugin v1.3 (#7)
* Refactored code to remove tag and breadcrumb leaks.
Latest commit ab0e46e Aug 9, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
sentry_plugin Plugin v1.3 (#7) Aug 9, 2019
tests Plugin v1.3 (#7) Aug 9, 2019
.gitignore Created Sentry Airflow Plugin (#2) Jun 6, 2019
.travis.yml Created Sentry Airflow Plugin (#2) Jun 6, 2019
LICENSE Fixed and Updated Plugin (#4) Jun 19, 2019
requirements-test.txt Created Sentry Airflow Plugin (#2) Jun 6, 2019
requirements.txt Plugin v1.3 (#7) Aug 9, 2019

Build Status License Sentry Status

Sentry Airflow Plugin

A plugin for Airflow dags and tasks that sets up Sentry for error logging.



Install the sentry-sdk:

$ pip install sentry-sdk

Create a plugin folder in your AIRFLOW_HOME directory if you do not have one yet:

$ mkdir -p $AIRFLOW_HOME/plugins

Then clone this repository in there:

$ cd $AIRFLOW_HOME/plugins
$ git clone

Make sure you have setup your SENTRY_DSN in your environment variables! The DSN can be found in Sentry by navigating to [Project Name] -> Project Settings -> Client Keys (DSN). Its template resembles the following: '{PROTOCOL}://{PUBLIC_KEY}@{HOST}/{PROJECT_ID}'

Google Composer

Install the sentry-sdk into Google Composer's Python dependencies.

Add this folder to your plugin directory:

$ gcloud composer environments storage plugins import --environment ENVIRONMENT_NAME \
    --location LOCATION \
    --source PATH_TO_LOCAL_FILE \
    --destination PATH_IN_SUBFOLDER

(For more information checkout Google's Docs)

Either set an environment variable on Google composer for your SENTRY_DSN or in the Airflow webserver UI, add a connection (Admin->Connections) for sentry_dsn. Let the connection type be HTTP and the host be the DSN value.

You can’t perform that action at this time.