1 instantiation of HttpTelemetry
System.Net.Http (1)
System\Net\Http\HttpTelemetry.cs (1)
15
public static readonly HttpTelemetry Log = new
HttpTelemetry
();
74 references to HttpTelemetry
System.Net.Http (74)
System\Net\Http\HttpClient.cs (13)
194
if (
HttpTelemetry
.Log.IsEnabled() && telemetryStarted)
196
HttpTelemetry
.Log.ResponseContentStart();
266
if (
HttpTelemetry
.Log.IsEnabled() && telemetryStarted)
268
HttpTelemetry
.Log.ResponseContentStart();
474
if (
HttpTelemetry
.Log.IsEnabled() && telemetryStarted)
476
HttpTelemetry
.Log.ResponseContentStart();
529
if (
HttpTelemetry
.Log.IsEnabled() && telemetryStarted)
531
HttpTelemetry
.Log.ResponseContentStart();
629
if (
HttpTelemetry
.Log.IsEnabled())
631
HttpTelemetry
.Log.RequestStart(request);
641
if (
HttpTelemetry
.Log.IsEnabled() && telemetryStarted)
645
HttpTelemetry
.Log.ResponseContentStop();
648
HttpTelemetry
.Log.RequestStop(response);
System\Net\Http\HttpMessageInvoker.cs (7)
40
HttpTelemetry
.Log.RequestStart(request);
55
HttpTelemetry
.Log.RequestStop(response);
79
HttpTelemetry
.Log.RequestStart(request);
94
HttpTelemetry
.Log.RequestStop(response);
100
HttpTelemetry
.Log.IsEnabled() &&
107
if (
HttpTelemetry
.Log.IsEnabled() && telemetryStarted)
109
HttpTelemetry
.Log.RequestFailed(exception);
System\Net\Http\HttpTelemetry.cs (1)
15
public static readonly
HttpTelemetry
Log = new HttpTelemetry();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (4)
22
bool withTelemetry =
HttpTelemetry
.Log.IsEnabled()
49
if (
HttpTelemetry
.Log.IsEnabled() || GlobalHttpSettings.MetricsHandler.IsGloballyEnabled)
58
if (
HttpTelemetry
.Log.IsEnabled())
60
HttpTelemetry
.Log.RequestLeftQueue(versionMajor, duration);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (4)
1638
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.RequestHeadersStart(Id);
1696
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.RequestHeadersStop();
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (8)
212
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.RequestContentStart();
235
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.RequestContentStop(writeStream.BytesWritten);
1055
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.ResponseHeadersStart();
1071
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.ResponseHeadersStop((int)_response.StatusCode);
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (3)
965
_startTimestamp =
HttpTelemetry
.Log.IsEnabled() || (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled && _settings._metrics!.RequestsQueueDuration.Enabled) ? Stopwatch.GetTimestamp() : 0;
987
if (
HttpTelemetry
.Log.IsEnabled())
989
HttpTelemetry
.Log.RequestLeftQueue(3, duration);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (12)
384
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.ResponseHeadersStart();
409
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.ResponseHeadersStop((int)_response.StatusCode);
445
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.RequestContentStart();
480
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.RequestContentStop(bytesWritten);
612
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.RequestHeadersStart(_connection.Id);
717
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.RequestHeadersStop();
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (12)
554
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.RequestHeadersStart(Id);
558
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.RequestHeadersStop();
672
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.ResponseHeadersStart();
721
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.ResponseHeadersStop((int)response.StatusCode);
973
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.RequestContentStart();
991
if (
HttpTelemetry
.Log.IsEnabled())
HttpTelemetry
.Log.RequestContentStop(stream.BytesWritten);
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (8)
86
if (
HttpTelemetry
.Log.IsEnabled())
94
if (this is HttpConnection)
HttpTelemetry
.Log.Http11ConnectionEstablished(Id, scheme, host, port, remoteEndPoint);
95
else if (this is Http2Connection)
HttpTelemetry
.Log.Http20ConnectionEstablished(Id, scheme, host, port, remoteEndPoint);
96
else
HttpTelemetry
.Log.Http30ConnectionEstablished(Id, scheme, host, port, remoteEndPoint);
104
if (
HttpTelemetry
.Log.IsEnabled())
109
if (this is HttpConnection)
HttpTelemetry
.Log.Http11ConnectionClosed(Id);
110
else if (this is Http2Connection)
HttpTelemetry
.Log.Http20ConnectionClosed(Id);
111
else
HttpTelemetry
.Log.Http30ConnectionClosed(Id);
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (2)
56
if (
HttpTelemetry
.Log.IsEnabled())
58
HttpTelemetry
.Log.Redirect(redirectUri);