module OpenTelemetry::Instrumentation::HttpClient::Patches::Session
Module to prepend to HTTPClient::Session for instrumentation
Public Instance Methods
connect()
click to toggle source
Calls superclass method
# File lib/opentelemetry/instrumentation/http_client/patches/session.rb, line 13 def connect site = @proxy || @dest url = site.addr attributes = OpenTelemetry::Common::HTTP::ClientContext.attributes.merge('http.url' => url) tracer.in_span('HTTP CONNECT', attributes: attributes) do super end end
Private Instance Methods
tracer()
click to toggle source
# File lib/opentelemetry/instrumentation/http_client/patches/session.rb, line 25 def tracer HttpClient::Instrumentation.instance.tracer end