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