diff --git a/instrumentation/opentelemetry-instrumentation-httpx/README.rst b/instrumentation/opentelemetry-instrumentation-httpx/README.rst index 7916c185cf..cc465dd615 100644 --- a/instrumentation/opentelemetry-instrumentation-httpx/README.rst +++ b/instrumentation/opentelemetry-instrumentation-httpx/README.rst @@ -186,7 +186,7 @@ Or if you are using the transport classes directly: ) async_transport = httpx.AsyncHTTPTransport() - telemetry_transport = AsyncOpenTelemetryTransport( + async_telemetry_transport = AsyncOpenTelemetryTransport( async_transport, request_hook=async_request_hook, response_hook=async_response_hook diff --git a/instrumentation/opentelemetry-instrumentation-httpx/src/opentelemetry/instrumentation/httpx/__init__.py b/instrumentation/opentelemetry-instrumentation-httpx/src/opentelemetry/instrumentation/httpx/__init__.py index 2057db89fb..9a8c931bdb 100644 --- a/instrumentation/opentelemetry-instrumentation-httpx/src/opentelemetry/instrumentation/httpx/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-httpx/src/opentelemetry/instrumentation/httpx/__init__.py @@ -181,7 +181,7 @@ async def async_response_hook(span, request, response): ) async_transport = httpx.AsyncHTTPTransport() - telemetry_transport = AsyncOpenTelemetryTransport( + async_telemetry_transport = AsyncOpenTelemetryTransport( async_transport, request_hook=async_request_hook, response_hook=async_response_hook