14 references to MetricsHandler
System.Net.Http (14)
System\Net\Http\Metrics\MetricsHandler.cs (2)
138Debug.Assert(GlobalHttpSettings.MetricsHandler.IsGloballyEnabled); 174Debug.Assert(GlobalHttpSettings.MetricsHandler.IsGloballyEnabled);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (3)
23|| (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled && pool.Settings._metrics!.RequestsQueueDuration.Enabled) 49if (HttpTelemetry.Log.IsEnabled() || GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) 53if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled)
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (2)
961_startTimestamp = HttpTelemetry.Log.IsEnabled() || (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled && _settings._metrics!.RequestsQueueDuration.Enabled) ? Stopwatch.GetTimestamp() : 0; 979if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled)
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (4)
115if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) 163if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.ConnectionClosed(durationMs: Environment.TickCount64 - _creationTickCount); 180if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.IdleStateChanged(idle: true); 186if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.IdleStateChanged(idle: false);
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
331if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled || GlobalHttpSettings.DiagnosticsHandler.EnableActivityPropagation)
System\Net\Http\SocketsHttpHandler\HttpConnectionSettings.cs (1)
140if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled)
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (1)
564if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled)