Registry / observability / opentelemetry-util-http

opentelemetry-util-http

JSON →
library0.65b0pypypi✓ verified 24d ago

Provides HTTP-related utilities for OpenTelemetry instrumentation, currently at version 0.61b0, with a beta release cadence.

pip install opentelemetry-util-http
INSTALL
IMPORT
SIG · OPENTELEMETRY-UTIL
O
opentelemetry-util-http
observabilitypythonv0.65b0
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.65b0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HttpInstrumentation
from opentelemetry.instrumentation.httpx import HttpInstrumentation
from opentelemetry.instrumentation.httpx import HttpInstrumentation

A basic example of using OpenTelemetry's HTTPX instrumentation to monitor HTTP requests.

import os from opentelemetry.instrumentation.httpx import HttpInstrumentation # Initialize the HTTPX instrumentation httpx_instrumentor = HttpInstrumentation() httpx_instrumentor.enable() # Your application code here # For example, making an HTTP request using httpx import httpx client = httpx.Client() response = client.get('http://example.com') print(response.status_code) # Disable the instrumentation when done httpx_instrumentor.disable()
Debug
Known issues
breakingThe 'http.target' attribute has been split into 'url.path' and 'url.query' as part of the stabilization of HTTP Semantic Conventions. Ensure your instrumentation and observability tools are updated accordingly.
fix
Update your instrumentation and observability tools to handle the new attribute names 'url.path' and 'url.query'.
affects: >=0.61b0
deprecatedThe 'http.client_ip' attribute has been replaced with 'client.address' in the latest semantic conventions. Update your code to use 'client.address' for client IP information.
fix
Replace instances of 'http.client_ip' with 'client.address' in your codebase.
affects: >=0.61b0
breakingThe OpenTelemetry instrumentation module could not be found. This typically means the necessary OpenTelemetry packages (e.g., opentelemetry-api, opentelemetry-sdk, and specific instrumentation packages like opentelemetry-instrumentation-httpx) are not installed in the environment.
fix
Install the required OpenTelemetry packages using pip: `pip install opentelemetry-api opentelemetry-sdk opentelemetry-instrumentation-httpx`.
affects: >=0.61b0
gotchaThe 'opentelemetry.instrumentation' module was not found. This typically indicates that required OpenTelemetry packages, such as 'opentelemetry-sdk' or specific instrumentation packages like 'opentelemetry-instrumentation-httpx', are not installed in the environment.
fix
Ensure that the necessary OpenTelemetry packages are installed. For example, run 'pip install opentelemetry-sdk opentelemetry-instrumentation-httpx'.
affects: *
Upgrade
Version history
0.65b0latest on PyPI · released Jul 16, 2026
Audit
Dependencies
opentelemetry-apirequiredProvides the OpenTelemetry API for instrumentation.
opentelemetry-sdkrequiredProvides the OpenTelemetry SDK for telemetry data processing.
Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
2
Resources
opentelemetry-util-http — pip install opentelemetry-util-http · libregistry