lib/opentelemetry/instrumentation/net/http/patches/instrumentation.rb in opentelemetry-instrumentation-net_http-0.21.0 vs lib/opentelemetry/instrumentation/net/http/patches/instrumentation.rb in opentelemetry-instrumentation-net_http-0.21.1
- old
+ new
@@ -43,9 +43,11 @@
private
# rubocop:disable Metrics/MethodLength
def connect
+ return super if untraced?
+
if proxy?
conn_address = proxy_address
conn_port = proxy_port
else
conn_address = address