-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Description
open-telemetry/semantic-conventions#342 is introducing changes to the OTel standard that will effect the conformance of our http.client.open_connections and http.client.connection.duration metrics. The PR is expected to be merged very soon giving us an opportunity to adjust our metrics for 8.0 GA and avoid breaking changes in 9.0.
- We should rename
server.socket.addresstonetwork.peer.addressin both metrics - Given that it's recommended to set
network.peer.portwhennetwork.peer.addressis set, we should introduce that attribute. The implementation should be trivial, since we are flowing down the peer'sIPEndPointtoHttpConnectionBase.
runtime/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionBase.cs
Lines 53 to 59 in 3452a99
| _connectionMetrics = new ConnectionMetrics( | |
| metrics, | |
| protocol, | |
| pool.IsSecure ? "https" : "http", | |
| pool.OriginAuthority.HostValue, | |
| pool.IsDefaultPort ? null : pool.OriginAuthority.Port, | |
| remoteEndPoint?.Address?.ToString()); |