python-flask icon indicating copy to clipboard operation
python-flask copied to clipboard

Add examples with blueprints usage.

Open ror6ax opened this issue 6 years ago • 2 comments

Most production flask apps would use blueprints. Add documentation to show how to achieve tracing of such application layout.

ror6ax avatar May 14 '18 12:05 ror6ax

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.

william20111 avatar Jul 30 '19 09:07 william20111

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

roachlord avatar Mar 05 '20 11:03 roachlord

This package is no longer being maintained, users should migrate to the opentelemetry-api package.

Closing.

ptmcg avatar Feb 29 '24 22:02 ptmcg