Skip to content

Commit c429d65

Browse files
committed
Remove dead code
1 parent 86a5d28 commit c429d65

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
@@ -735,10 +735,6 @@ def _instrument(self, **kwargs):
735735
self._async_request_hook = kwargs.get("async_request_hook")
736736
self._async_response_hook = kwargs.get("async_response_hook")
737737

738-
if getattr(self, "__instrumented", False):
739-
print("already instrumented")
740-
return
741-
742738
_OpenTelemetrySemanticConventionStability._initialize()
743739
self._sem_conv_opt_in_mode = _OpenTelemetrySemanticConventionStability._get_opentelemetry_stability_opt_in_mode(
744740
_OpenTelemetryStabilitySignalType.HTTP,
@@ -761,8 +757,6 @@ def _instrument(self, **kwargs):
761757
self._handle_async_request_wrapper,
762758
)
763759

764-
self.__instrumented = True
765-
766760
def _uninstrument(self, **kwargs):
767761
import httpx
768762

0 commit comments

Comments
 (0)