skillfed

opentelemetry-instrumentation-flask

Flask instrumentation for OpenTelemetry

opentelemetry-instrumentation-flask Permissive license Apache-2.0 Active 1,086 v0.65b0 released

Install

opentelemetry-instrumentation-flask on PyPI

pip

pip install opentelemetry-instrumentation-flask

uv

uv add opentelemetry-instrumentation-flask

poetry

poetry add opentelemetry-instrumentation-flask

Package 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

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
flask request tracingopentelemetry flask instrumentationdistributed tracing flaskflask http span collectionopentelemetry wsgi middleware flaskflask observability instrumentationflask request monitoring

Similar packages