File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
instrumentation/opentelemetry-instrumentation-httpx/src/opentelemetry/instrumentation/httpx Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -527,11 +527,11 @@ def _instrument(self, **kwargs):
527
527
tracer_provider = kwargs .get ("tracer_provider" )
528
528
_InstrumentedClient ._tracer_provider = tracer_provider
529
529
_InstrumentedAsyncClient ._tracer_provider = tracer_provider
530
- httpx .Client = _InstrumentedClient
530
+ httpx .Client = httpx . _api . Client = _InstrumentedClient
531
531
httpx .AsyncClient = _InstrumentedAsyncClient
532
532
533
533
def _uninstrument (self , ** kwargs ):
534
- httpx .Client = self ._original_client
534
+ httpx .Client = httpx . _api . Client = self ._original_client
535
535
httpx .AsyncClient = self ._original_async_client
536
536
_InstrumentedClient ._tracer_provider = None
537
537
_InstrumentedClient ._request_hook = None
You can’t perform that action at this time.
0 commit comments