1 instantiation of ConnectionMetricsContext
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\KestrelMetrics.cs (1)
356return new ConnectionMetricsContext
48 references to ConnectionMetricsContext
Microsoft.AspNetCore.Server.Kestrel.Core (48)
Internal\BaseHttpConnectionContext.cs (2)
24ConnectionMetricsContext metricsContext) 47public ConnectionMetricsContext MetricsContext { get; }
Internal\ConnectionDispatcher.cs (1)
57var metricsContext = Metrics.CreateContext(connection);
Internal\Http\Http1Connection.cs (1)
99public ConnectionMetricsContext MetricsContext => _context.MetricsContext;
Internal\Http\Http1OutputProducer.cs (2)
32private readonly ConnectionMetricsContext _connectionMetricsContext; 79ConnectionMetricsContext connectionMetricsContext,
Internal\Http2\Http2Connection.cs (1)
109private readonly ConnectionMetricsContext _metricsContext;
Internal\Http2\Http2Stream.cs (1)
98public ConnectionMetricsContext MetricsContext => _context.MetricsContext;
Internal\Http2\Http2StreamContext.cs (1)
31ConnectionMetricsContext metricsContext) : base(connectionId, protocols, altSvcHeader, connectionContext, serviceContext, connectionFeatures, memoryPool, localEndPoint, remoteEndPoint, metricsContext)
Internal\Http3\Http3Connection.cs (1)
95public ConnectionMetricsContext MetricsContext { get; }
Internal\Http3\Http3Stream.cs (1)
99public ConnectionMetricsContext MetricsContext => _context.MetricsContext;
Internal\HttpConnectionContext.cs (1)
25ConnectionMetricsContext metricsContext) : base(connectionId, protocols, altSvcHeader, connectionContext, serviceContext, connectionFeatures, memoryPool, localEndPoint, remoteEndPoint, metricsContext)
Internal\HttpMultiplexedConnectionContext.cs (1)
24ConnectionMetricsContext metricsContext) : base(connectionId, protocols, altSvcHeader, connectionContext, serviceContext, connectionFeatures, memoryPool, localEndPoint, remoteEndPoint, metricsContext)
Internal\Infrastructure\IConnectionMetricsContextFeature.cs (1)
8ConnectionMetricsContext MetricsContext { get; }
Internal\Infrastructure\KestrelConnection.cs (2)
28ConnectionMetricsContext connectionMetricsContext) 40public ConnectionMetricsContext MetricsContext { get; set; }
Internal\Infrastructure\KestrelConnectionOfT.cs (1)
22ConnectionMetricsContext connectionMetricsContext)
Internal\Infrastructure\KestrelMetrics.cs (26)
96public void ConnectionStart(ConnectionMetricsContext metricsContext) 105private void ConnectionStartCore(ConnectionMetricsContext metricsContext) 112public void ConnectionStop(ConnectionMetricsContext metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp) 121private void ConnectionStopCore(ConnectionMetricsContext metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp) 158public void ConnectionRejected(ConnectionMetricsContext metricsContext) 170private void ConnectionRejectedCore(ConnectionMetricsContext metricsContext) 177public void BareLineFeedRequest(ConnectionMetricsContext metricsContext, bool rejected, string httpVersion) 192public void ConnectionQueuedStart(ConnectionMetricsContext metricsContext) 201private void ConnectionQueuedStartCore(ConnectionMetricsContext metricsContext) 208public void ConnectionQueuedStop(ConnectionMetricsContext metricsContext) 217private void ConnectionQueuedStopCore(ConnectionMetricsContext metricsContext) 224public void RequestQueuedStart(ConnectionMetricsContext metricsContext, string httpVersion) 233private void RequestQueuedStartCore(ConnectionMetricsContext metricsContext, string httpVersion) 242public void RequestQueuedStop(ConnectionMetricsContext metricsContext, string httpVersion) 251private void RequestQueuedStopCore(ConnectionMetricsContext metricsContext, string httpVersion) 260public void RequestUpgradedStart(ConnectionMetricsContext metricsContext) 269private void RequestUpgradedStartCore(ConnectionMetricsContext metricsContext) 276public void RequestUpgradedStop(ConnectionMetricsContext metricsContext) 285private void RequestUpgradedStopCore(ConnectionMetricsContext metricsContext) 292public void TlsHandshakeStart(ConnectionMetricsContext metricsContext) 301private void TlsHandshakeStartCore(ConnectionMetricsContext metricsContext) 309public void TlsHandshakeStop(ConnectionMetricsContext metricsContext, long startTimestamp, long currentTimestamp, SslProtocols? protocol = null, Exception? exception = null) 318private void TlsHandshakeStopCore(ConnectionMetricsContext metricsContext, long startTimestamp, long currentTimestamp, SslProtocols? protocol = null, Exception? exception = null) 348private static void InitializeConnectionTags(ref TagList tags, in ConnectionMetricsContext metricsContext) 353public ConnectionMetricsContext CreateContext(BaseConnectionContext connection) 423public static void AddConnectionEndReason(ConnectionMetricsContext? context, ConnectionEndReason reason, bool overwrite = false)
Middleware\HttpConnectionMiddleware.cs (1)
32var metricContext = connectionContext.Features.GetRequiredFeature<IConnectionMetricsContextFeature>().MetricsContext;
Middleware\HttpMultiplexedConnectionMiddleware.cs (1)
33var metricContext = connectionContext.Features.GetRequiredFeature<IConnectionMetricsContextFeature>().MetricsContext;
Middleware\HttpsConnectionMiddleware.cs (3)
169var metricsContext = context.Features.GetRequiredFeature<IConnectionMetricsContextFeature>().MetricsContext; 269static void RecordHandshakeFailed(KestrelMetrics metrics, long startTimestamp, long currentTimestamp, ConnectionMetricsContext metricsContext, IConnectionMetricsTagsFeature? metricsTagsFeature, Exception ex) 471var (middleware, context, feature, metricsContext) = (ValueTuple<HttpsConnectionMiddleware, ConnectionContext, Core.Internal.TlsConnectionFeature, ConnectionMetricsContext>)state!;