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.
|
_connectionMetrics = new ConnectionMetrics( |
|
metrics, |
|
protocol, |
|
pool.IsSecure ? "https" : "http", |
|
pool.OriginAuthority.HostValue, |
|
pool.IsDefaultPort ? null : pool.OriginAuthority.Port, |
|
remoteEndPoint?.Address?.ToString()); |
open-telemetry/semantic-conventions#342 is introducing changes to the OTel standard that will effect the conformance of our
http.client.open_connectionsandhttp.client.connection.durationmetrics. 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.server.socket.addresstonetwork.peer.addressin both metricsnetwork.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