15 references to DiagnosticsHelper
System.Net.Http (15)
System\Net\Http\DiagnosticsHandler.cs (5)
121KeyValuePair<string, object?> methodTag = DiagnosticsHelper.GetMethodTag(request.Method, out bool isUnknownMethod); 132activity.SetTag("url.full", DiagnosticsHelper.GetRedactedUriString(requestUri)); 203activity.SetTag("http.response.status_code", DiagnosticsHelper.GetBoxedInt32((int)response.StatusCode)); 204activity.SetTag("network.protocol.version", DiagnosticsHelper.GetProtocolVersionString(response.Version)); 207if (DiagnosticsHelper.TryGetErrorType(response, exception, out string? errorType))
System\Net\Http\Metrics\MetricsHandler.cs (6)
33advice: DiagnosticsHelper.ShortHistogramAdvice); 113tags.Add("http.response.status_code", DiagnosticsHelper.GetBoxedInt32((int)response.StatusCode)); 114tags.Add("network.protocol.version", DiagnosticsHelper.GetProtocolVersionString(response.Version)); 117if (DiagnosticsHelper.TryGetErrorType(response, exception, out string? errorType)) 143tags.Add("server.port", DiagnosticsHelper.GetBoxedInt32(requestUri.Port)); 145tags.Add(DiagnosticsHelper.GetMethodTag(request.Method, out _));
System\Net\Http\SocketsHttpHandler\ConnectionPool\ConnectionSetupDistributedTracing.cs (1)
66DiagnosticsHelper.TryGetErrorType(null, exception, out string? errorType);
System\Net\Http\SocketsHttpHandler\Metrics\ConnectionMetrics.cs (1)
27_portTag = DiagnosticsHelper.GetBoxedInt32(port);
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (2)
30advice: DiagnosticsHelper.ShortHistogramAdvice); 56tags.Add(DiagnosticsHelper.GetMethodTag(request.Method, out _));