skillfed

opentelemetry-instrumentation-asgi

ASGI instrumentation for OpenTelemetry

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

Install

opentelemetry-instrumentation-asgi on PyPI

pip

pip install opentelemetry-instrumentation-asgi

uv

uv add opentelemetry-instrumentation-asgi

poetry

poetry add opentelemetry-instrumentation-asgi

Package 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

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-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)
asgi middleware tracingopentelemetry asgi instrumentationrequest timing tracking asgidistributed tracing fastapiasgi observability middlewareopentelemetry django starletteasgi request monitoring

Similar packages