This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

A Flask module pushing exceptions to Datadog


  • Pushing exceptions to Datadog;
  • Blacklist for headers or data as list of XPATH style strings (you may have some headers you do not want to publish for privacy, or maybe some body fields you do not need to display - e.g.: a base64 blob).


Using pip:

$ pip install flask_breathalyzer[datadog]


When opening an Issue, please add few lines of code as failing test, or -better- open its relative Pull request adding this test to our test suite.

Quick example

Let’s create a new virtualenv with all we need:

$ virtualenv example
$ source example/bin/activate
$ pip install pytest flask_breathalyzer[datadog]

As second step, we create a test file as the following one:

from flask import Flask
import datadog

from flask_breathalyzer import Breathalyzer

def test_example():

    app = Flask(__name__)

    def boom():

    # from
    options = {
        'api_key': 'your-datadog-api-key',
        'app_key': 'your-datadog-app-key'

    ba = Breathalyzer(app, **options)
    response = test_client.get('/')
    assert response.status == '500 INTERNAL SERVER ERROR'
    assert b'<title>500 Internal Server Error</title>' in
    assert response.mimetype == 'text/html'
    assert isinstance(ba.last_event_id, int)  # your exception is now on Datadog with this ID

Let’s fire our example test:

$ py.test
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Flask-Breathalyzer-0.2.2.tar.gz (6.4 kB) Copy SHA256 Checksum SHA256 Source May 4, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting