lib/opentelemetry/instrumentation/http/patches/client.rb in opentelemetry-instrumentation-http-0.19.3 vs lib/opentelemetry/instrumentation/http/patches/client.rb in opentelemetry-instrumentation-http-0.19.4
- old
+ new
@@ -19,10 +19,10 @@
'http.scheme' => uri.scheme,
'http.target' => uri.path,
'http.url' => "#{uri.scheme}://#{uri.host}",
'net.peer.name' => uri.host,
'net.peer.port' => uri.port
- }.merge(OpenTelemetry::Common::HTTP::ClientContext.attributes)
+ }.merge!(OpenTelemetry::Common::HTTP::ClientContext.attributes)
tracer.in_span("HTTP #{request_method}", attributes: attributes, kind: :client) do |span|
OpenTelemetry.propagation.inject(req.headers)
super.tap do |response|
annotate_span_with_response!(span, response)