skip to navigation
skip to content

django-statsd 1.5

django-statsd is a django app that submits query and view durations to Etsy's statsd.

Downloads ↓ | Package Documentation

Latest Version: 1.7.2

Introduction

django_statsd is a middleware that uses python-statsd to log query and view durations to statsd.

Install

To install simply execute python setup.py install. If you want to run the tests first, run python setup.py nosetests

Usage

Just add django_statsd to the installed_apps and add django_statsd.middleware.TimingMiddleware to MIDDLEWARE_CLASSES

Advanced Usage

>>> def some_view(request):
...     with request.timings('something_to_time'):
...         # do something here
...         pass
>>>
>>> def some_view(request):
...     request.timings.start('something_to_time')
...     # do something here
...     request.timings.stop('something_to_time')
 
File Type Py Version Uploaded on Size # downloads
django-statsd-1.5.tar.gz (md5) Source 2011-08-09 2KB 404
django_statsd-1.5-py2.6.egg (md5) Python Egg 2.6 2011-08-09 7KB 310