python-flask
python-flask copied to clipboard
Add examples with blueprints usage.
Most production flask apps would use blueprints. Add documentation to show how to achieve tracing of such application layout.
Has anyone used this particular setup? Im working with blueprints and wondering what best practice is for setting up tracing with them using that project structure.
As flask blueprints implement before_request
, after_request
and teardown_request
methods you can pass the flask blueprint to the FlaskTracing.__init__
method in place of the app
and set trace_all_requests=True
This package is no longer being maintained, users should migrate to the opentelemetry-api
package.
Closing.