72 references to Log
System.Net.Http (72)
System\Net\Http\HttpClient.cs (13)
194
if (HttpTelemetry.
Log
.IsEnabled() && telemetryStarted)
196
HttpTelemetry.
Log
.ResponseContentStart();
269
if (HttpTelemetry.
Log
.IsEnabled() && telemetryStarted)
271
HttpTelemetry.
Log
.ResponseContentStart();
481
if (HttpTelemetry.
Log
.IsEnabled() && telemetryStarted)
483
HttpTelemetry.
Log
.ResponseContentStart();
536
if (HttpTelemetry.
Log
.IsEnabled() && telemetryStarted)
538
HttpTelemetry.
Log
.ResponseContentStart();
636
if (HttpTelemetry.
Log
.IsEnabled())
638
HttpTelemetry.
Log
.RequestStart(request);
648
if (HttpTelemetry.
Log
.IsEnabled() && telemetryStarted)
652
HttpTelemetry.
Log
.ResponseContentStop();
655
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)
87
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);