1 instantiation of ConnectionMetricsContext
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\KestrelMetrics.cs (1)
366
return new
ConnectionMetricsContext
49 references to ConnectionMetricsContext
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
233
var
metricsContext = MultiplexedConnectionContext.Features.GetRequiredFeature<IConnectionMetricsContextFeature>().MetricsContext;
Microsoft.AspNetCore.Server.Kestrel.Core (47)
Internal\BaseHttpConnectionContext.cs (2)
24
ConnectionMetricsContext
metricsContext)
47
public
ConnectionMetricsContext
MetricsContext { get; }
Internal\ConnectionDispatcher.cs (1)
57
var
metricsContext = Metrics.CreateContext(connection);
Internal\Http\Http1Connection.cs (1)
73
public
ConnectionMetricsContext
MetricsContext => _context.MetricsContext;
Internal\Http\Http1OutputProducer.cs (2)
32
private readonly
ConnectionMetricsContext
_connectionMetricsContext;
79
ConnectionMetricsContext
connectionMetricsContext,
Internal\Http2\Http2Connection.cs (1)
105
private readonly
ConnectionMetricsContext
_metricsContext;
Internal\Http2\Http2Stream.cs (1)
98
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)
81
public
ConnectionMetricsContext
MetricsContext => _context.MetricsContext;
Internal\HttpConnectionContext.cs (1)
25
ConnectionMetricsContext
metricsContext) : base(connectionId, protocols, altSvcHeader, connectionContext, serviceContext, connectionFeatures, memoryPool, localEndPoint, remoteEndPoint, metricsContext)
Internal\HttpMultiplexedConnectionContext.cs (1)
24
ConnectionMetricsContext
metricsContext) : base(connectionId, protocols, altSvcHeader, connectionContext, serviceContext, connectionFeatures, memoryPool, localEndPoint, remoteEndPoint, metricsContext)
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 (25)
85
public void ConnectionStart(
ConnectionMetricsContext
metricsContext)
94
private void ConnectionStartCore(
ConnectionMetricsContext
metricsContext)
101
public void ConnectionStop(
ConnectionMetricsContext
metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp)
110
private void ConnectionStopCore(
ConnectionMetricsContext
metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp)
147
public void ConnectionRejected(
ConnectionMetricsContext
metricsContext)
159
private void ConnectionRejectedCore(
ConnectionMetricsContext
metricsContext)
166
public void ConnectionQueuedStart(
ConnectionMetricsContext
metricsContext)
175
private void ConnectionQueuedStartCore(
ConnectionMetricsContext
metricsContext)
182
public void ConnectionQueuedStop(
ConnectionMetricsContext
metricsContext)
191
private void ConnectionQueuedStopCore(
ConnectionMetricsContext
metricsContext)
198
public void RequestQueuedStart(
ConnectionMetricsContext
metricsContext, string httpVersion)
207
private void RequestQueuedStartCore(
ConnectionMetricsContext
metricsContext, string httpVersion)
216
public void RequestQueuedStop(
ConnectionMetricsContext
metricsContext, string httpVersion)
225
private void RequestQueuedStopCore(
ConnectionMetricsContext
metricsContext, string httpVersion)
234
public void RequestUpgradedStart(
ConnectionMetricsContext
metricsContext)
243
private void RequestUpgradedStartCore(
ConnectionMetricsContext
metricsContext)
250
public void RequestUpgradedStop(
ConnectionMetricsContext
metricsContext)
259
private void RequestUpgradedStopCore(
ConnectionMetricsContext
metricsContext)
266
public void TlsHandshakeStart(
ConnectionMetricsContext
metricsContext)
275
private void TlsHandshakeStartCore(
ConnectionMetricsContext
metricsContext)
283
public void TlsHandshakeStop(
ConnectionMetricsContext
metricsContext, long startTimestamp, long currentTimestamp, SslProtocols? protocol = null, Exception? exception = null)
292
private void TlsHandshakeStopCore(
ConnectionMetricsContext
metricsContext, long startTimestamp, long currentTimestamp, SslProtocols? protocol = null, Exception? exception = null)
322
private static void InitializeConnectionTags(ref TagList tags, in
ConnectionMetricsContext
metricsContext)
363
public
ConnectionMetricsContext
CreateContext(BaseConnectionContext connection)
433
public static void AddConnectionEndReason(
ConnectionMetricsContext
? context, ConnectionEndReason reason, bool overwrite = false)
Middleware\HttpConnectionMiddleware.cs (1)
32
var
metricContext = connectionContext.Features.GetRequiredFeature<IConnectionMetricsContextFeature>().MetricsContext;
Middleware\HttpMultiplexedConnectionMiddleware.cs (1)
33
var
metricContext = connectionContext.Features.GetRequiredFeature<IConnectionMetricsContextFeature>().MetricsContext;
Middleware\HttpsConnectionMiddleware.cs (3)
158
var
metricsContext = context.Features.GetRequiredFeature<IConnectionMetricsContextFeature>().MetricsContext;
239
static void RecordHandshakeFailed(KestrelMetrics metrics, long startTimestamp, long currentTimestamp,
ConnectionMetricsContext
metricsContext, IConnectionMetricsTagsFeature? metricsTagsFeature, Exception ex)
441
var (middleware, context, feature, metricsContext) = (ValueTuple<HttpsConnectionMiddleware, ConnectionContext, Core.Internal.TlsConnectionFeature,
ConnectionMetricsContext
>)state!;
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
233
var
metricsContext = MultiplexedConnectionContext.Features.GetRequiredFeature<IConnectionMetricsContextFeature>().MetricsContext;