opentelemetry-instrumentation-flask
Flask instrumentation for OpenTelemetry
Install
opentelemetry-instrumentation-flask on PyPI
pip
pip install opentelemetry-instrumentation-flaskuv
uv add opentelemetry-instrumentation-flaskpoetry
poetry add opentelemetry-instrumentation-flaskPackage facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — opentelemetry-api, opentelemetry-instrumentation-wsgi, opentelemetry-instrumentation, opentelemetry-semantic-conventions, opentelemetry-util-http, packaging |
| Maintenance | actively maintained — 28 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: opentelemetry_instrumentation_flask-0.65b0-py3-none-any.whl
About opentelemetry-instrumentation-flask
from the package's own PyPI description — quoted content, verbatim
OpenTelemetry Flask Tracing
|pypi|
.. |pypi| image:: https://badge.fury.io/py/opentelemetry-instrumentation-flask.svg :target: https://pypi.org/project/opentelemetry-instrumentation-flask/
This library builds on the OpenTelemetry WSGI middleware to track web requests in Flask applications.
Installation
::
pip install opentelemetry-instrumentation-flask
References
OpenTelemetry Flask Instrumentation <https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/flask/flask.html>_OpenTelemetry Project <https://opentelemetry.io/>_OpenTelemetry Python Examples <https://github.com/open-telemetry/opentelemetry-python/tree/main/docs/examples>_
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Adds distributed tracing to Flask web applications by instrumenting HTTP requests and responses through OpenTelemetry, building on WSGI middleware to capture request spans and metadata.
Low friction install with six runtime dependencies, all from the OpenTelemetry ecosystem. Active maintenance with a release 28 days ago and recent commits; the project is in Beta status but part of the widely-used opentelemetry-python-contrib repository.
Apache-2.0 permissive license allows use in most commercial and open-source projects without significant restrictions.
Usage
pip install opentelemetry-instrumentation-flask
from opentelemetry.instrumentation.flask import FlaskInstrumentor
FlaskInstrumentor().instrument()
Requires Python 3.10 or later; Flask application and OpenTelemetry SDK/exporter must be configured separately for traces to be exported.
Verdict: A well-maintained, actively developed instrumentation library for adding distributed tracing to Flask applications. Low install friction, permissive licensing, and no known vulnerabilities make it a solid choice for Flask observability. The Beta status and requirement for Python 3.10+ are minor considerations for modern deployments.
Needs verification
- Whether the package requires explicit Flask version constraints beyond what pip dependency resolution enforces
- Performance overhead of instrumentation on typical Flask request latency
- Compatibility with Flask extensions and custom WSGI middleware stacks
Similar packages
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-aiohttp-clientpermissive · top 1,000 on PyPI
opentelemetry-instrumentation-redispermissive · top 1,000 on PyPI
opentelemetry-instrumentation-fastapipermissive · top 1,000 on PyPI
opentelemetry-instrumentation-threadingpermissive · top 1,000 on PyPI
opentelemetry-instrumentation-sqlalchemypermissive · top 1,000 on PyPI
opentelemetry-instrumentation-loggingpermissive · top 1,000 on PyPI
opentelemetry-semantic-conventionspermissive · top 100 on PyPI
opentelemetry-instrumentation-psycopg2permissive · top 1,000 on PyPI
opentelemetry-instrumentation-asgipermissive · top 1,000 on PyPI