WSGI (Web Server Gateway Interface) is a specification that defines the protocol between web servers and Python web applications.
The Blackfire Python SDK contains a middleware easing the integration with WSGI web applications.
Integrations with other frameworks could benefit the Blackfire community. Please consider contributing your code.
Create a class extending the
FRAMEWORK variable must be set; it should describe the instrumented
1 2 3 4 5 6 7
from blackfire.hooks.wsgi import BlackfireWSGIMiddleware class BlackfireFooBarMiddleware(BlackfireWSGIMiddleware): FRAMEWORK = 'Foo-Bar' ...