opentelemetry-instrumentation-wsgi
WSGI Middleware for OpenTelemetry
Install
opentelemetry-instrumentation-wsgi on PyPI
pip
pip install opentelemetry-instrumentation-wsgiuv
uv add opentelemetry-instrumentation-wsgipoetry
poetry add opentelemetry-instrumentation-wsgiPackage facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, opentelemetry-util-http |
| 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_wsgi-0.65b0-py3-none-any.whl
About opentelemetry-instrumentation-wsgi
from the package's own PyPI description — quoted content, verbatim
OpenTelemetry WSGI Middleware
|pypi|
.. |pypi| image:: https://badge.fury.io/py/opentelemetry-instrumentation-wsgi.svg :target: https://pypi.org/project/opentelemetry-instrumentation-wsgi/
This library provides a WSGI middleware that can be used on any WSGI framework (such as Django / Flask) to track requests timing through OpenTelemetry.
Installation
::
pip install opentelemetry-instrumentation-wsgi
References
OpenTelemetry WSGI Middleware <https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/wsgi/wsgi.html>_OpenTelemetry Project <https://opentelemetry.io/>_WSGI <https://www.python.org/dev/peps/pep-3333>_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
Provides WSGI middleware for automatic request tracing and timing instrumentation via OpenTelemetry, compatible with any WSGI framework like Django or Flask.
Low friction: pure Python wheel with four well-established OpenTelemetry runtime dependencies. Actively maintained (28 days since last release, repository last commit 2026-08-13), though currently in beta status.
Licensed under Apache-2.0 (permissive), allowing use in proprietary and open-source projects with minimal restrictions beyond attribution.
Usage
pip install opentelemetry-instrumentation-wsgi
from opentelemetry.instrumentation.wsgi import OpenTelemetryMiddleware
app = OpenTelemetryMiddleware(wsgi_app)
Requires Python 3.10 or later; requires a configured OpenTelemetry tracer provider to be active.
Verdict: A well-maintained, actively developed beta library for WSGI tracing with permissive licensing and low install friction. No known vulnerabilities. Suitable for production use in frameworks that support WSGI, though beta status suggests API may evolve.
Needs verification
- Whether the 0.65b0 beta version is recommended for production or if a stable release is preferred
- Specific performance overhead of the middleware on typical WSGI applications
Similar packages
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-flaskpermissive · top 1,000 on PyPI
posthogpermissive · top 1,000 on PyPI
Flask-Loginpermissive · top 1,000 on PyPI
opentelemetry-util-httppermissive · top 1,000 on PyPI
opentelemetry-instrumentation-djangopermissive · top 1,000 on PyPI
gunicornpermissive · top 1,000 on PyPI
opentelemetry-instrumentation-psycopg2permissive · top 1,000 on PyPI
opentelemetry-instrumentation-dbapipermissive · top 1,000 on PyPI
django-cors-headerspermissive · top 1,000 on PyPI