skillfed

opentelemetry-util-http

Web util for OpenTelemetry

opentelemetry-util-http Permissive license Apache-2.0 Active 1,086 v0.65b0 released

Install

opentelemetry-util-http on PyPI

pip

pip install opentelemetry-util-http

uv

uv add opentelemetry-util-http

poetry

poetry add opentelemetry-util-http

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 — 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_util_http-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-util-http

from the package's own PyPI description — quoted content, verbatim

OpenTelemetry Util HTTP

|pypi|

.. |pypi| image:: https://badge.fury.io/py/opentelemetry-util-http.svg :target: https://pypi.org/project/opentelemetry-util-http/

This library provides ASGI, WSGI middleware and other HTTP-related functionality that is common to instrumented web frameworks (such as Django, Starlette, FastAPI, etc.) to track requests timing through OpenTelemetry.

Installation

::

pip install opentelemetry-util-http

Usage (Quart)

.. code-block:: python

from quart import Quart
from opentelemetry.instrumentation.asgi import OpenTelemetryMiddleware

app = Quart(__name__)
app.asgi_app = OpenTelemetryMiddleware(app.asgi_app)

@app.route("/")
async def hello():
    return "Hello!"

if __name__ == "__main__":
    app.run(debug=True)

Usage (Django 3.0)

Modify the application's asgi.py file as shown below.

.. code-block:: python

import os
from django.core.asgi import get_asgi_application
from opentelemetry.instrumentation.asgi import OpenTelemetryMiddleware

os.environ.setdefault('DJANGO_SETTINGS_MODULE',...

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 and WSGI middleware and HTTP utilities for OpenTelemetry instrumentation of web frameworks like Django, Starlette, and FastAPI to track request timing and performance.

Low friction: pure-Python wheel with no runtime dependencies and active maintenance (28 days since last release). Supports Python 3.10–3.14.

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most production environments.

Usage

pip install opentelemetry-util-http

from opentelemetry.instrumentation.asgi import OpenTelemetryMiddleware
app = OpenTelemetryMiddleware(your_asgi_app)

Requires Python ≥3.10; intended as a utility library—actual tracing requires a configured OpenTelemetry SDK and exporter.

Verdict: Active, low-friction utility library for OpenTelemetry HTTP instrumentation with no known vulnerabilities and permissive licensing. Beta status and zero runtime dependencies make it a lightweight choice for adding observability to web frameworks, though users must configure their own OpenTelemetry SDK and exporters.

Needs verification

  • Whether this package alone provides complete tracing or requires additional OpenTelemetry instrumentation packages for specific frameworks.
  • Beta classification (Development Status 4) and its implications for production readiness.
opentelemetry asgi middlewarehttp request tracingweb framework instrumentationopentelemetry wsgirequest timing telemetrydjango fastapi starlette tracing

Similar packages