lib/opentelemetry/instrumentation/net/http/patches/instrumentation.rb in opentelemetry-instrumentation-net_http-0.21.1 vs lib/opentelemetry/instrumentation/net/http/patches/instrumentation.rb in opentelemetry-instrumentation-net_http-0.22.0
- old
+ new
@@ -41,11 +41,10 @@
end
end
private
- # rubocop:disable Metrics/MethodLength
def connect
return super if untraced?
if proxy?
conn_address = proxy_address
@@ -70,10 +69,9 @@
tracer.in_span(span_name, attributes: attributes, kind: span_kind) do
super
end
end
- # rubocop:enable Metrics/MethodLength
def annotate_span_with_response!(span, response)
return unless response&.code
status_code = response.code.to_i