Skip to content

Commit 52471f9

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

File tree

1 file changed

+1
-3
lines changed
  • instrumentation/opentelemetry-instrumentation-httpx/src/opentelemetry/instrumentation/httpx

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -890,9 +890,7 @@ def instrument_client(
890890
that is called right before the span ends
891891
"""
892892

893-
if getattr(
894-
client._transport, "_is_instrumented_by_opentelemetry", False
895-
):
893+
if getattr(client, "_is_instrumented_by_opentelemetry", False):
896894
_logger.warning(
897895
"Attempting to instrument Httpx client while already instrumented"
898896
)

0 commit comments

Comments
 (0)