Skip to main content

Just a wsgi filter for mesure time execution

Project description

WSGI middleware for chronometer wsgi application

https://travis-ci.org/cyplp/wsgi_chronometer.png?branch=master

Usage

You can use in your wsgi app :

from wsgi_chronometer import ChronoFilter
from somewhere import SomeWsgiApp

return ChronoFilter(SomeWsgiApp,  **{'separator': '*', 'fields': ['DATETIME', 'TIME']})(environ, start_response)

or in the .ini deployement file :

[app:sample]
use = egg:sample_app

[pipeline:main]
pipeline =
   chrono
   sample

[filter:chrono]
use = egg:wsgi_chronometer
separator = -
fields = REQUEST_METHOD PATH_INFO HTTP_USER_AGENT HTTP_X_FORWARDED_FOR HTTP_X_REAL_IP

Project details


Download files

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

Files for wsgi_chronometer, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size wsgi_chronometer-0.1.1.zip (11.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page