72 references to Log
System.Net.Http (72)
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\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
90
long queueStartingTimestamp = HttpTelemetry.
Log
.IsEnabled() || Settings._metrics!.RequestsQueueDuration.Enabled ? Stopwatch.GetTimestamp() : 0;
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (3)
22
return HttpTelemetry.
Log
.IsEnabled() || pool.Settings._metrics!.RequestsQueueDuration.Enabled || Activity.Current?.Source == DiagnosticsHandler.s_activitySource
50
if (HttpTelemetry.
Log
.IsEnabled())
52
HttpTelemetry.
Log
.RequestLeftQueue(versionMajor, duration);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (4)
1625
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.RequestHeadersStart(Id);
1683
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 (2)
289
if (HttpTelemetry.
Log
.IsEnabled())
291
HttpTelemetry.
Log
.RequestLeftQueue(versionMajor: 3, duration);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (12)
380
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.ResponseHeadersStart();
405
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.ResponseHeadersStop((int)_response.StatusCode);
441
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.RequestContentStart();
476
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.RequestContentStop(bytesWritten);
604
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.RequestHeadersStart(_connection.Id);
709
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();
670
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.ResponseHeadersStart();
719
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.ResponseHeadersStop((int)response.StatusCode);
971
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.RequestContentStart();
989
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.RequestContentStop(stream.BytesWritten);
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (8)
83
if (HttpTelemetry.
Log
.IsEnabled())
91
if (this is HttpConnection) HttpTelemetry.
Log
.Http11ConnectionEstablished(Id, scheme, host, port, remoteEndPoint);
92
else if (this is Http2Connection) HttpTelemetry.
Log
.Http20ConnectionEstablished(Id, scheme, host, port, remoteEndPoint);
93
else HttpTelemetry.
Log
.Http30ConnectionEstablished(Id, scheme, host, port, remoteEndPoint);
101
if (HttpTelemetry.
Log
.IsEnabled())
106
if (this is HttpConnection) HttpTelemetry.
Log
.Http11ConnectionClosed(Id);
107
else if (this is Http2Connection) HttpTelemetry.
Log
.Http20ConnectionClosed(Id);
108
else HttpTelemetry.
Log
.Http30ConnectionClosed(Id);
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (2)
56
if (HttpTelemetry.
Log
.IsEnabled())
58
HttpTelemetry.
Log
.Redirect(redirectUri);