Skip to content

Commit f42c678

Browse files
committed
make sure that test fails
1 parent e5f1579 commit f42c678

File tree

1 file changed

+4
-4
lines changed
  • instrumentation/opentelemetry-instrumentation-httpx/src/opentelemetry/instrumentation/httpx

1 file changed

+4
-4
lines changed

instrumentation/opentelemetry-instrumentation-httpx/src/opentelemetry/instrumentation/httpx/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ def instrument_client(
948948
response_hook=response_hook,
949949
),
950950
)
951-
client._transport._is_instrumented_by_opentelemetry = True
951+
client._is_instrumented_by_opentelemetry = True
952952
if hasattr(client._transport, "handle_async_request"):
953953
wrap_function_wrapper(
954954
client._transport,
@@ -974,7 +974,7 @@ def instrument_client(
974974
async_response_hook=async_response_hook,
975975
),
976976
)
977-
client._transport._is_instrumented_by_opentelemetry = True
977+
client._is_instrumented_by_opentelemetry = True
978978

979979
@staticmethod
980980
def uninstrument_client(
@@ -989,9 +989,9 @@ def uninstrument_client(
989989
unwrap(client._transport, "handle_request")
990990
for transport in client._mounts.values():
991991
unwrap(transport, "handle_request")
992-
client._transport._is_instrumented_by_opentelemetry = False
992+
client._is_instrumented_by_opentelemetry = False
993993
elif hasattr(client._transport, "handle_async_request"):
994994
unwrap(client._transport, "handle_async_request")
995995
for transport in client._mounts.values():
996996
unwrap(transport, "handle_async_request")
997-
client._transport._is_instrumented_by_opentelemetry = False
997+
client._is_instrumented_by_opentelemetry = False

0 commit comments

Comments
 (0)