WSGI Middleware

WSGI

class metrology.wsgi.Middleware(application, reporter=None, **kwargs)

A WSGI middleware to measure requests rate and time

application = Middleware(application, reporter)
Parameters:
  • application – your wsgi application
  • reporter – your metrology reporter