Adding manual instrumentation to flask
and requests
like we did in Lesson 3
is tedious. Fortunately, we don't need to do that because that instrumentation already exists
as open source modules. For extra credit, use these libraries to avoid instrumenting your
code manually:
- opentracing-python-instrumentation - instruments requests, SQLAlchemy, redis, and more.
- python-flask - automatically instruments web requests to Flask apps. This tutorial walks through the setup.