Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple Django middleware for submitting timings and exceptions to Datadog.

Project Description
# Django Datadog

A simple Django middleware for submitting timings and exceptions to Datadog.

## Installation

Download the code into your project and install it.

git clone git://
cd django-datadog
python install

Add `datadog` to your list of installed apps.

INSTALLED_APPS += ('datadog')

Add the following configuration to your projects' `` file:

DATADOG_APP_NAME = 'my_app' # Used to namespace metric names

The API and app keys can be found at

Add the Datadog request handler to your middleware in ``.

MIDDLEWARE_CLASSES += ('datadog.middleware.DatadogMiddleware')

## Usage

Once the middlewhere installed, you'll start receiving events in your Datadog
stream in the case of an app exception. Here's an example:

![example django exception](

You will also have new timing metrics available:

- `my_app.request_time.{avg,max,min}`
- `my_app.errors`

Metrics are tagged with `path:/path/to/view`

Note: `my_app` will be replaced by whatever value you give for `DATADOG_APP_NAME`.
Release History

Release History

This version
History Node

History Node

History Node

History Node

History Node

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ak_django_datadog- (4.7 kB) Copy SHA256 Checksum SHA256 py2 Wheel Feb 29, 2016
ak-django-datadog- (2.7 kB) Copy SHA256 Checksum SHA256 Source Feb 29, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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