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

- old
+ new

@@ -23,12 +23,12 @@ HTTP_METHODS_TO_SPAN_NAMES[req.method], attributes: attributes.merge( 'http.method' => req.method, 'http.scheme' => USE_SSL_TO_SCHEME[use_ssl?], 'http.target' => req.path, - 'peer.hostname' => @address, - 'peer.port' => @port + 'net.peer.name' => @address, + 'net.peer.port' => @port ), kind: :client ) do |span| OpenTelemetry.propagation.inject(req) @@ -49,11 +49,11 @@ conn_port = port end attributes = OpenTelemetry::Common::HTTP::ClientContext.attributes tracer.in_span('HTTP CONNECT', attributes: attributes.merge( - 'peer.hostname' => conn_address, - 'peer.port' => conn_port + 'net.peer.name' => conn_address, + 'net.peer.port' => conn_port )) do super end end