opentelemetry-instrumentation-asgi
ASGI instrumentation for OpenTelemetry
Install
opentelemetry-instrumentation-asgi on PyPI
pip
pip install opentelemetry-instrumentation-asgiuv
uv add opentelemetry-instrumentation-asgipoetry
poetry add opentelemetry-instrumentation-asgiPackage facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — asgiref, 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_asgi-0.65b0-py3-none-any.whl
About opentelemetry-instrumentation-asgi
from the package's own PyPI description — quoted content, verbatim
OpenTelemetry ASGI Instrumentation
|pypi|
.. |pypi| image:: https://badge.fury.io/py/opentelemetry-instrumentation-asgi.svg :target: https://pypi.org/project/opentelemetry-instrumentation-asgi/
This library provides a ASGI middleware that can be used on any ASGI framework (such as Django, Starlette, FastAPI or Quart) to track requests timing through OpenTelemetry.
Installation
::
pip install opentelemetry-instrumentation-asgi
References
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
Provides ASGI middleware for OpenTelemetry that automatically instruments request timing and tracing across ASGI frameworks like Django, Starlette, FastAPI, and Quart.
Low friction install with five runtime dependencies all from the OpenTelemetry ecosystem. Actively maintained with recent releases; last commit 2026-08-13 and version 0.65b0 released 2026-07-16.
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, typical for OpenTelemetry project components.
Usage
pip install opentelemetry-instrumentation-asgi
from opentelemetry.instrumentation.asgi import OpenTelemetryMiddleware
app = OpenTelemetryMiddleware(your_asgi_app)
Requires Python 3.10 or later; an ASGI application and OpenTelemetry SDK/exporter must be configured separately.
Verdict: A well-maintained, actively developed instrumentation library for adding observability to ASGI applications via OpenTelemetry. Beta status and zero known vulnerabilities make it suitable for production use where tracing is needed. Low install friction and permissive licensing support broad adoption.
Needs verification
- Whether the beta status (0.65b0) indicates API stability or ongoing breaking changes
- Performance overhead of middleware on typical ASGI request throughput
- Compatibility matrix with specific ASGI framework versions (Django, FastAPI, Starlette, Quart)
Similar packages
permissive · top 1,000 on PyPI
opentelemetry-util-httppermissive · top 1,000 on PyPI
sentry-sdkpermissive · top 1,000 on PyPI
opentelemetry-instrumentation-fastapipermissive · top 1,000 on PyPI
gunicornpermissive · top 1,000 on PyPI
opentelemetry-instrumentation-flaskpermissive · top 1,000 on PyPI
posthogpermissive · top 1,000 on PyPI
opentelemetry-instrumentation-djangopermissive · top 1,000 on PyPI
ddtracepermissive · top 1,000 on PyPI
starlettepermissive · top 100 on PyPI