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