18 references to DiagnosticsHandlerLoggingStrings
System.Net.Http (18)
System\Net\Http\DiagnosticsHandler.cs (15)
18
private static readonly DiagnosticListener s_diagnosticListener = new DiagnosticListener(
DiagnosticsHandlerLoggingStrings
.DiagnosticListenerName);
19
internal static readonly ActivitySource s_activitySource = new ActivitySource(
DiagnosticsHandlerLoggingStrings
.RequestNamespace);
61
activity = s_activitySource.StartActivity(
DiagnosticsHandlerLoggingStrings
.RequestActivityName, ActivityKind.Client);
66
s_diagnosticListener.IsEnabled(
DiagnosticsHandlerLoggingStrings
.RequestActivityName, request)))
68
activity = new Activity(
DiagnosticsHandlerLoggingStrings
.RequestActivityName).Start();
137
if (diagnosticListener.IsEnabled(
DiagnosticsHandlerLoggingStrings
.RequestActivityStartName))
139
Write(diagnosticListener,
DiagnosticsHandlerLoggingStrings
.RequestActivityStartName, new ActivityStartData(request));
144
if (diagnosticListener.IsEnabled(
DiagnosticsHandlerLoggingStrings
.RequestWriteNameDeprecated))
148
Write(diagnosticListener,
DiagnosticsHandlerLoggingStrings
.RequestWriteNameDeprecated,
182
if (diagnosticListener.IsEnabled(
DiagnosticsHandlerLoggingStrings
.ExceptionEventName))
187
Write(diagnosticListener,
DiagnosticsHandlerLoggingStrings
.ExceptionEventName, new ExceptionData(ex, request));
218
if (diagnosticListener.IsEnabled(
DiagnosticsHandlerLoggingStrings
.RequestActivityStopName))
220
Write(diagnosticListener,
DiagnosticsHandlerLoggingStrings
.RequestActivityStopName, new ActivityStopData(response, request, taskStatus));
227
if (diagnosticListener.IsEnabled(
DiagnosticsHandlerLoggingStrings
.ResponseWriteNameDeprecated))
230
Write(diagnosticListener,
DiagnosticsHandlerLoggingStrings
.ResponseWriteNameDeprecated,
System\Net\Http\SocketsHttpHandler\ConnectionPool\ConnectionSetupDistributedTracing.cs (3)
13
private static readonly ActivitySource s_connectionsActivitySource = new ActivitySource(
DiagnosticsHandlerLoggingStrings
.ConnectionsNamespace);
23
activity = s_connectionsActivitySource.StartActivity(
DiagnosticsHandlerLoggingStrings
.ConnectionSetupActivityName);
74
Activity? activity = s_connectionsActivitySource.StartActivity(
DiagnosticsHandlerLoggingStrings
.WaitForConnectionActivityName);