Skip to content

Commit 06bc9b5

Browse files
committed
Remove dead code
1 parent 0dd652e commit 06bc9b5

File tree

1 file changed

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

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -738,10 +738,6 @@ def _instrument(self, **kwargs):
738738
self._async_request_hook = kwargs.get("async_request_hook")
739739
self._async_response_hook = kwargs.get("async_response_hook")
740740

741-
if getattr(self, "__instrumented", False):
742-
print("already instrumented")
743-
return
744-
745741
_OpenTelemetrySemanticConventionStability._initialize()
746742
self._sem_conv_opt_in_mode = _OpenTelemetrySemanticConventionStability._get_opentelemetry_stability_opt_in_mode(
747743
_OpenTelemetryStabilitySignalType.HTTP,
@@ -764,8 +760,6 @@ def _instrument(self, **kwargs):
764760
self._handle_async_request_wrapper,
765761
)
766762

767-
self.__instrumented = True
768-
769763
def _uninstrument(self, **kwargs):
770764
import httpx
771765

0 commit comments

Comments
 (0)