1 instantiation of ConnectionMetricsContext
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\KestrelMetrics.cs (1)
352return new ConnectionMetricsContext(connection,
40 references to ConnectionMetricsContext
Microsoft.AspNetCore.Server.Kestrel.Core (40)
Internal\ConnectionDispatcher.cs (1)
57var metricsContext = Metrics.CreateContext(connection);
Internal\Http2\Http2Connection.cs (1)
89private readonly ConnectionMetricsContext _metricsContext;
Internal\Http2\Http2Stream.cs (1)
86public 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)
80public ConnectionMetricsContext MetricsContext => _context.MetricsContext;
Internal\HttpConnectionContext.cs (2)
25ConnectionMetricsContext metricsContext) : base(connectionId, protocols, altSvcHeader, connectionContext, serviceContext, connectionFeatures, memoryPool, localEndPoint, remoteEndPoint) 31public ConnectionMetricsContext MetricsContext { get; }
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 (24)
79public void ConnectionStart(in ConnectionMetricsContext metricsContext) 88private void ConnectionStartCore(in ConnectionMetricsContext metricsContext) 95public void ConnectionStop(in ConnectionMetricsContext metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp) 104private void ConnectionStopCore(in ConnectionMetricsContext metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp) 136public void ConnectionRejected(in ConnectionMetricsContext metricsContext) 146private void ConnectionRejectedCore(in ConnectionMetricsContext metricsContext) 153public void ConnectionQueuedStart(in ConnectionMetricsContext metricsContext) 162private void ConnectionQueuedStartCore(in ConnectionMetricsContext metricsContext) 169public void ConnectionQueuedStop(in ConnectionMetricsContext metricsContext) 178private void ConnectionQueuedStopCore(in ConnectionMetricsContext metricsContext) 185public void RequestQueuedStart(in ConnectionMetricsContext metricsContext, string httpVersion) 194private void RequestQueuedStartCore(in ConnectionMetricsContext metricsContext, string httpVersion) 203public void RequestQueuedStop(in ConnectionMetricsContext metricsContext, string httpVersion) 212private void RequestQueuedStopCore(in ConnectionMetricsContext metricsContext, string httpVersion) 221public void RequestUpgradedStart(in ConnectionMetricsContext metricsContext) 230private void RequestUpgradedStartCore(in ConnectionMetricsContext metricsContext) 237public void RequestUpgradedStop(in ConnectionMetricsContext metricsContext) 246private void RequestUpgradedStopCore(in ConnectionMetricsContext metricsContext) 253public void TlsHandshakeStart(in ConnectionMetricsContext metricsContext) 262private void TlsHandshakeStartCore(in ConnectionMetricsContext metricsContext) 270public void TlsHandshakeStop(in ConnectionMetricsContext metricsContext, long startTimestamp, long currentTimestamp, SslProtocols? protocol = null, Exception? exception = null) 279private void TlsHandshakeStopCore(in ConnectionMetricsContext metricsContext, long startTimestamp, long currentTimestamp, SslProtocols? protocol = null, Exception? exception = null) 308private static void InitializeConnectionTags(ref TagList tags, in ConnectionMetricsContext metricsContext) 349public ConnectionMetricsContext CreateContext(BaseConnectionContext connection)
Middleware\HttpConnectionMiddleware.cs (1)
32var metricContext = connectionContext.Features.GetRequiredFeature<IConnectionMetricsContextFeature>().MetricsContext;
Middleware\HttpsConnectionMiddleware.cs (3)
157var metricsContext = context.Features.GetRequiredFeature<IConnectionMetricsContextFeature>().MetricsContext; 238static void RecordHandshakeFailed(KestrelMetrics metrics, long startTimestamp, long currentTimestamp, ConnectionMetricsContext metricsContext, Exception ex) 438var (middleware, context, feature, metricsContext) = (ValueTuple<HttpsConnectionMiddleware, ConnectionContext, Core.Internal.TlsConnectionFeature, ConnectionMetricsContext>)state!;