1 instantiation of HttpTelemetry
System.Net.Http (1)
System\Net\Http\HttpTelemetry.cs (1)
15public static readonly HttpTelemetry Log = new HttpTelemetry();
73 references to HttpTelemetry
System.Net.Http (73)
System\Net\Http\HttpClient.cs (13)
194if (HttpTelemetry.Log.IsEnabled() && telemetryStarted) 196HttpTelemetry.Log.ResponseContentStart(); 266if (HttpTelemetry.Log.IsEnabled() && telemetryStarted) 268HttpTelemetry.Log.ResponseContentStart(); 474if (HttpTelemetry.Log.IsEnabled() && telemetryStarted) 476HttpTelemetry.Log.ResponseContentStart(); 529if (HttpTelemetry.Log.IsEnabled() && telemetryStarted) 531HttpTelemetry.Log.ResponseContentStart(); 629if (HttpTelemetry.Log.IsEnabled()) 631HttpTelemetry.Log.RequestStart(request); 641if (HttpTelemetry.Log.IsEnabled() && telemetryStarted) 645HttpTelemetry.Log.ResponseContentStop(); 648HttpTelemetry.Log.RequestStop(response);
System\Net\Http\HttpMessageInvoker.cs (7)
40HttpTelemetry.Log.RequestStart(request); 55HttpTelemetry.Log.RequestStop(response); 79HttpTelemetry.Log.RequestStart(request); 94HttpTelemetry.Log.RequestStop(response); 100HttpTelemetry.Log.IsEnabled() && 107if (HttpTelemetry.Log.IsEnabled() && telemetryStarted) 109HttpTelemetry.Log.RequestFailed(exception);
System\Net\Http\HttpTelemetry.cs (1)
15public static readonly HttpTelemetry Log = new HttpTelemetry();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
90long queueStartingTimestamp = HttpTelemetry.Log.IsEnabled() || Settings._metrics!.RequestsQueueDuration.Enabled ? Stopwatch.GetTimestamp() : 0;
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (3)
22return HttpTelemetry.Log.IsEnabled() || pool.Settings._metrics!.RequestsQueueDuration.Enabled || Activity.Current?.Source == DiagnosticsHandler.s_activitySource 50if (HttpTelemetry.Log.IsEnabled()) 52HttpTelemetry.Log.RequestLeftQueue(versionMajor, duration);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (4)
1625if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestHeadersStart(Id); 1683if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestHeadersStop();
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (8)
212if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestContentStart(); 235if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestContentStop(writeStream.BytesWritten); 1055if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.ResponseHeadersStart(); 1071if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.ResponseHeadersStop((int)_response.StatusCode);
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (2)
289if (HttpTelemetry.Log.IsEnabled()) 291HttpTelemetry.Log.RequestLeftQueue(versionMajor: 3, duration);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (12)
380if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.ResponseHeadersStart(); 405if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.ResponseHeadersStop((int)_response.StatusCode); 441if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestContentStart(); 476if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestContentStop(bytesWritten); 604if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestHeadersStart(_connection.Id); 709if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestHeadersStop();
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (12)
554if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestHeadersStart(Id); 558if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestHeadersStop(); 670if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.ResponseHeadersStart(); 719if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.ResponseHeadersStop((int)response.StatusCode); 971if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestContentStart(); 989if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestContentStop(stream.BytesWritten);
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (8)
83if (HttpTelemetry.Log.IsEnabled()) 91if (this is HttpConnection) HttpTelemetry.Log.Http11ConnectionEstablished(Id, scheme, host, port, remoteEndPoint); 92else if (this is Http2Connection) HttpTelemetry.Log.Http20ConnectionEstablished(Id, scheme, host, port, remoteEndPoint); 93else HttpTelemetry.Log.Http30ConnectionEstablished(Id, scheme, host, port, remoteEndPoint); 101if (HttpTelemetry.Log.IsEnabled()) 106if (this is HttpConnection) HttpTelemetry.Log.Http11ConnectionClosed(Id); 107else if (this is Http2Connection) HttpTelemetry.Log.Http20ConnectionClosed(Id); 108else HttpTelemetry.Log.Http30ConnectionClosed(Id);
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (2)
56if (HttpTelemetry.Log.IsEnabled()) 58HttpTelemetry.Log.Redirect(redirectUri);