1 instantiation of KestrelMetrics
Microsoft.AspNetCore.Server.Kestrel.Core (1)
KestrelServer.cs (1)
39
new
KestrelMetrics
(new DummyMeterFactory()));
45 references to KestrelMetrics
Microsoft.AspNetCore.Server.Kestrel.Core (45)
Internal\ConnectionDispatcher.cs (1)
25
private
KestrelMetrics
Metrics => _serviceContext.Metrics;
Internal\Http\Http1ChunkedEncodingMessageBody.cs (1)
140
KestrelMetrics
.AddConnectionEndReason(_context.MetricsContext, ConnectionEndReason.UnexpectedEndOfRequestContent);
Internal\Http\Http1Connection.cs (9)
142
KestrelMetrics
.AddConnectionEndReason(MetricsContext, reason);
154
KestrelMetrics
.AddConnectionEndReason(MetricsContext, ConnectionEndReason.RequestHeadersTimeout);
162
KestrelMetrics
.AddConnectionEndReason(MetricsContext, ConnectionEndReason.MinRequestBodyDataRate);
624
KestrelMetrics
.AddConnectionEndReason(MetricsContext, ConnectionEndReason.InvalidRequestHeaders);
635
KestrelMetrics
.AddConnectionEndReason(MetricsContext, ConnectionEndReason.InvalidRequestHeaders);
668
KestrelMetrics
.AddConnectionEndReason(MetricsContext, ConnectionEndReason.InvalidRequestHeaders);
677
KestrelMetrics
.AddConnectionEndReason(MetricsContext, ConnectionEndReason.InvalidRequestHeaders);
743
KestrelMetrics
.AddConnectionEndReason(MetricsContext, ConnectionEndReason.OtherError);
842
KestrelMetrics
.AddConnectionEndReason(MetricsContext, reason);
Internal\Http\Http1MessageBody.cs (2)
210
KestrelMetrics
.AddConnectionEndReason(context.MetricsContext, ConnectionEndReason.InvalidRequestHeaders);
231
KestrelMetrics
.AddConnectionEndReason(_context.MetricsContext, ConnectionEndReason.UnexpectedEndOfRequestContent);
Internal\Http\Http1OutputProducer.cs (1)
472
KestrelMetrics
.AddConnectionEndReason(_connectionMetricsContext, reason);
Internal\Http2\Http2Connection.cs (2)
239
KestrelMetrics
.AddConnectionEndReason(_metricsContext, reason);
1344
_context.ServiceContext.Metrics.RequestQueuedStart(_metricsContext,
KestrelMetrics
.Http2);
Internal\Http2\Http2StreamOfT.cs (1)
24
ServiceContext.Metrics.RequestQueuedStop(MetricsContext,
KestrelMetrics
.Http2);
Internal\Http3\Http3Connection.cs (2)
190
KestrelMetrics
.AddConnectionEndReason(MetricsContext, reason);
618
_context.ServiceContext.Metrics.RequestQueuedStart(MetricsContext,
KestrelMetrics
.Http3);
Internal\Http3\Http3StreamOfT.cs (1)
23
ServiceContext.Metrics.RequestQueuedStop(MetricsContext,
KestrelMetrics
.Http3);
Internal\HttpConnection.cs (4)
72
AddMetricsHttpProtocolTag(
KestrelMetrics
.Http11);
80
AddMetricsHttpProtocolTag(
KestrelMetrics
.Http2);
85
AddMetricsHttpProtocolTag(
KestrelMetrics
.Http3);
131
KestrelMetrics
.AddConnectionEndReason(connectionMetricsTagsFeature, connectionEndReason);
Internal\Infrastructure\KestrelConnectionOfT.cs (1)
33
private
KestrelMetrics
Metrics => _serviceContext.Metrics;
Internal\Infrastructure\TransportConnectionManager.cs (1)
81
KestrelMetrics
.AddConnectionEndReason(
Internal\KestrelServerImpl.cs (4)
42
KestrelMetrics
metrics)
75
private static ServiceContext CreateServiceContext(IOptions<KestrelServerOptions> options, ILoggerFactory loggerFactory, DiagnosticSource? diagnosticSource,
KestrelMetrics
metrics)
428
private static ConnectionDelegate EnforceConnectionLimit(ConnectionDelegate innerDelegate, long? connectionLimit, KestrelTrace trace,
KestrelMetrics
metrics)
438
private static MultiplexedConnectionDelegate EnforceConnectionLimit(MultiplexedConnectionDelegate innerDelegate, long? connectionLimit, KestrelTrace trace,
KestrelMetrics
metrics)
Internal\ServiceContext.cs (1)
36
public
KestrelMetrics
Metrics { get; set; } = default!;
ListenOptionsHttpsExtensions.cs (4)
195
var
metrics = listenOptions.KestrelServerOptions.ApplicationServices.GetRequiredService<
KestrelMetrics
>();
258
var
metrics = listenOptions.KestrelServerOptions.ApplicationServices.GetRequiredService<
KestrelMetrics
>();
Middleware\ConnectionLimitMiddleware.cs (3)
16
private readonly
KestrelMetrics
_metrics;
18
public ConnectionLimitMiddleware(Func<T, Task> next, long connectionLimit, KestrelTrace trace,
KestrelMetrics
metrics)
24
internal ConnectionLimitMiddleware(Func<T, Task> next, ResourceCounter concurrentConnectionCounter, KestrelTrace trace,
KestrelMetrics
metrics)
Middleware\HttpsConnectionMiddleware.cs (7)
38
private readonly
KestrelMetrics
_metrics;
53
public HttpsConnectionMiddleware(ConnectionDelegate next, HttpsConnectionAdapterOptions options, HttpProtocols httpProtocols,
KestrelMetrics
metrics)
58
public HttpsConnectionMiddleware(ConnectionDelegate next, HttpsConnectionAdapterOptions options, HttpProtocols httpProtocols, ILoggerFactory loggerFactory,
KestrelMetrics
metrics)
121
KestrelMetrics
metrics)
207
if (
KestrelMetrics
.TryGetHandshakeProtocol(sslStream.SslProtocol, out var protocolName, out var protocolVersion))
239
static void RecordHandshakeFailed(
KestrelMetrics
metrics, long startTimestamp, long currentTimestamp, ConnectionMetricsContext metricsContext, IConnectionMetricsTagsFeature? metricsTagsFeature, Exception ex)
244
KestrelMetrics
.AddConnectionEndReason(metricsTagsFeature, ConnectionEndReason.TlsHandshakeFailed);