--- id: opentelemetry-instrumentation-urllib3 version: "0.65b0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # opentelemetry-instrumentation-urllib3 — OpenTelemetry urllib3 instrumentation License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install opentelemetry-instrumentation-urllib3 uv add opentelemetry-instrumentation-urllib3 poetry add opentelemetry-instrumentation-urllib3 ## Description OpenTelemetry urllib3 Instrumentation ====================================== |pypi| .. |pypi| image:: https://badge.fury.io/py/opentelemetry-instrumentation-urllib3.svg :target: https://pypi.org/project/opentelemetry-instrumentation-urllib3/ This library allows tracing HTTP requests made by the `urllib3 `_ library. Installation ------------ :: pip install opentelemetry-instrumentation-urllib3 Usage ----- .. code-block:: python import urllib3 from opentelemetry.instrumentation.urllib3 import URLLib3Instrumentor def strip_query_params(url: str) -> str: return url.split("?")[0] URLLib3Instrumentor().instrument( # Remove all query params from the URL attribute on the span. url_filter=strip_query_params, ) http = urllib3.PoolManager() response = http.request("GET", "https://www.example.org/") Configuration ------------- Request/Response hooks ********************** The urllib3 instrumentation supports extending tracing behavior with the help of request and response hooks. These are functions that are called back by the instrumentation right after a Span is created for a request... ## AI interpretation — verify before relying Automatically traces HTTP requests made by urllib3, capturing them as OpenTelemetry spans with configurable filtering and request/response hooks for observability. Verdict: A well-maintained, low-friction instrumentation library for tracing HTTP calls in OpenTelemetry deployments. Active development and no known vulnerabilities support production use; beta status (0.65b0) warrants verification of stability expectations. [View on SkillFed](https://skillfed.io/packages/opentelemetry-instrumentation-urllib3) · [View on PyPI](https://pypi.org/project/opentelemetry-instrumentation-urllib3/)