lib/opentelemetry/instrumentation/http/patches/connection.rb in opentelemetry-instrumentation-http-0.19.2 vs lib/opentelemetry/instrumentation/http/patches/connection.rb in opentelemetry-instrumentation-http-0.19.3

- old
+ new

@@ -10,11 +10,11 @@ module Patches # Module to prepend to HTTP::Connection for instrumentation module Connection def initialize(req, options) attributes = OpenTelemetry::Common::HTTP::ClientContext.attributes.merge( - 'peer.hostname' => req.uri.host, - 'peer.port' => req.uri.port + 'net.peer.name' => req.uri.host, + 'net.peer.port' => req.uri.port ) tracer.in_span('HTTP CONNECT', attributes: attributes) do super end