Skip to content

Commit 9378dfd

Browse files
committed
Add _is_instrumented_by_opentelemetry to the transport
1 parent cd925e7 commit 9378dfd

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,8 @@ class SyncOpenTelemetryTransport(httpx.BaseTransport):
402402
that is called right before the span ends
403403
"""
404404

405+
_is_instrumented_by_opentelemetry = True
406+
405407
def __init__(
406408
self,
407409
transport: httpx.BaseTransport,
@@ -527,6 +529,8 @@ class AsyncOpenTelemetryTransport(httpx.AsyncBaseTransport):
527529
that is called right before the span ends
528530
"""
529531

532+
_is_instrumented_by_opentelemetry = True
533+
530534
def __init__(
531535
self,
532536
transport: httpx.AsyncBaseTransport,

0 commit comments

Comments
 (0)