opentelemetry-util-http
Web util for OpenTelemetry
Decision gist · record as of 2026-08-14
Yes, if you are already using OpenTelemetry and need to instrument a web framework. The package has low friction, no external dependencies, active maintenance, and a permissive license. It is in Beta, so expect potential API changes; verify that the specific framework you use is supported before committing to it in production.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Assumes you have an ASGI application and OpenTelemetry instrumentation already configured.
- Low install friction with no runtime dependencies.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in most projects without significant restrictions.
last release 2026-07-16 (29 days) · last repo commit 2026-08-13 · 1,086 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 217,662,067 downloads/mo, #189 on PyPI
Alternatives
Verify before relying
pip install opentelemetry-util-http
from opentelemetry.instrumentation.asgi import OpenTelemetryMiddleware
app = OpenTelemetryMiddleware(app) # Wrap your ASGI application- Whether WSGI middleware is included or if only ASGI is currently implemented.
- What other HTTP-related utilities beyond middleware are provided by this package.
- Performance overhead of the middleware on request latency.
What it is and what it does
opentelemetry-util-http is a utility library that provides middleware and HTTP-related helpers for integrating OpenTelemetry tracing into web frameworks. It wraps ASGI applications (and potentially WSGI) to automatically capture and export request timing and metadata as OpenTelemetry spans, enabling distributed tracing across your web services.
The package is designed as a shared component for framework-specific instrumentation packages. It has no runtime dependencies and installs cleanly. It's actively maintained as part of the OpenTelemetry Python contrib project, supports current Python versions (3.10–3.14), and carries an Apache-2.0 license. The library is in Beta status and ranks in the top 1000 PyPI packages by download volume.
Use it for
- Add request tracing to a Django application by wrapping its ASGI handler with OpenTelemetryMiddleware.
- Instrument a FastAPI or Starlette app to automatically emit spans for each HTTP request.
- Integrate OpenTelemetry tracing into a Quart async web application without writing custom instrumentation.
- Share common HTTP tracing logic across multiple web frameworks in a microservices architecture.
- Track request latency and metadata in a raw ASGI application for observability.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are already using OpenTelemetry and need to instrument a web framework.
The package has low friction, no external dependencies, active maintenance, and a permissive license. It is in Beta, so expect potential API changes; verify that the specific framework you use is supported before committing to it in production.
Install
opentelemetry-util-http on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained as of 2026-08-13 with recent releases. Supports modern Python versions (3.10–3.14).
Requires Python 3.10 or later. Assumes you have an ASGI application and OpenTelemetry instrumentation already configured.
License in practice
Apache-2.0 permissive license allows use in most projects without significant restrictions.
Quickstart
pip install opentelemetry-util-http
from opentelemetry.instrumentation.asgi import OpenTelemetryMiddleware
app = OpenTelemetryMiddleware(app) # Wrap your ASGI application
Verify before relying
- Whether WSGI middleware is included or if only ASGI is currently implemented.
- What other HTTP-related utilities beyond middleware are provided by this package.
- Performance overhead of the middleware on request latency.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 217,662,067 / month, #189 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | 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 |
Evidence: opentelemetry_util_http-0.65b0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “opentelemetry http middleware”
- opentelemetry-util-httpProvides ASGI and WSGI middleware and HTTP utilities for…
- opentelemetry-instrumentation-falconAdds distributed tracing to Falcon web applications by instrumenting…
- opentelemetry-instrumentation-flaskAdds distributed tracing to Flask web applications by instrumenting…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also opentelemetry-instrumentation-asgi · opentelemetry-instrumentation-wsgi · timing-asgi · opentelemetry-instrumentation-starlette · opentelemetry-instrumentation-flask · opentelemetry-instrumentation-tornado · opentelemetry-instrumentation-fastapi · opentelemetry-instrumentation-pyramid · opentelemetry-instrumentation-django · opentelemetry-instrumentation-aiohttp-server