73 references to Log
System.Net.Http (73)
System\Net\Http\HttpClient.cs (13)
195
if (HttpTelemetry.
Log
.IsEnabled() && telemetryStarted)
197
HttpTelemetry.
Log
.ResponseContentStart();
269
if (HttpTelemetry.
Log
.IsEnabled() && telemetryStarted)
271
HttpTelemetry.
Log
.ResponseContentStart();
490
if (HttpTelemetry.
Log
.IsEnabled() && telemetryStarted)
492
HttpTelemetry.
Log
.ResponseContentStart();
545
if (HttpTelemetry.
Log
.IsEnabled() && telemetryStarted)
547
HttpTelemetry.
Log
.ResponseContentStart();
645
if (HttpTelemetry.
Log
.IsEnabled())
647
HttpTelemetry.
Log
.RequestStart(request);
657
if (HttpTelemetry.
Log
.IsEnabled() && telemetryStarted)
661
HttpTelemetry.
Log
.ResponseContentStop();
664
HttpTelemetry.
Log
.RequestStop(response);
System\Net\Http\HttpMessageInvoker.cs (7)
43
HttpTelemetry.
Log
.RequestStart(request);
58
HttpTelemetry.
Log
.RequestStop(response);
82
HttpTelemetry.
Log
.RequestStart(request);
97
HttpTelemetry.
Log
.RequestStop(response);
103
HttpTelemetry.
Log
.IsEnabled() &&
110
if (HttpTelemetry.
Log
.IsEnabled() && telemetryStarted)
112
HttpTelemetry.
Log
.RequestFailed(exception);
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)
1642
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.RequestHeadersStart(Id);
1700
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)
957
_startTimestamp = HttpTelemetry.
Log
.IsEnabled() || (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled && _settings._metrics!.RequestsQueueDuration.Enabled) ? Stopwatch.GetTimestamp() : 0;
979
if (HttpTelemetry.
Log
.IsEnabled())
981
HttpTelemetry.
Log
.RequestLeftQueue(3, duration);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (12)
408
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.ResponseHeadersStart();
433
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.ResponseHeadersStop((int)_response.StatusCode);
479
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.RequestContentStart();
514
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.RequestContentStop(bytesWritten);
662
if (HttpTelemetry.
Log
.IsEnabled()) HttpTelemetry.
Log
.RequestHeadersStart(_connection.Id);
767
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)
55
if (HttpTelemetry.
Log
.IsEnabled())
57
HttpTelemetry.
Log
.Redirect(redirectUri);