8 writes to Metrics
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
42Metrics = new KestrelMetrics(new TestMeterFactory())
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
67Metrics = metrics;
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\KestrelServerImpl.cs (1)
109Metrics = metrics
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
42Metrics = new KestrelMetrics(new TestMeterFactory())
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
67Metrics = metrics;
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
42Metrics = new KestrelMetrics(new TestMeterFactory())
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
67Metrics = metrics;
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
67Metrics = metrics;
13 references to Metrics
InMemory.FunctionalTests (2)
ConnectionLimitTests.cs (1)
240var middleware = new ConnectionLimitMiddleware<ConnectionContext>(c => next(c), concurrentConnectionCounter, serviceContext.Log, metrics: serviceContext.Metrics);
TestTransport\TestServer.cs (1)
90services.AddSingleton(context.Metrics);
Microsoft.AspNetCore.Server.Kestrel.Core (10)
Internal\ConnectionDispatcher.cs (1)
25private KestrelMetrics Metrics => _serviceContext.Metrics;
Internal\Http\Http1Connection.cs (1)
87ServiceContext.Metrics.RequestUpgradedStop(MetricsContext);
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
279ServiceContext.Metrics.RequestUpgradedStart(_context.MetricsContext);
Internal\Http2\Http2Connection.cs (1)
1344_context.ServiceContext.Metrics.RequestQueuedStart(_metricsContext, KestrelMetrics.Http2);
Internal\Http2\Http2StreamOfT.cs (1)
24ServiceContext.Metrics.RequestQueuedStop(MetricsContext, KestrelMetrics.Http2);
Internal\Http3\Http3Connection.cs (1)
618_context.ServiceContext.Metrics.RequestQueuedStart(MetricsContext, KestrelMetrics.Http3);
Internal\Http3\Http3StreamOfT.cs (1)
23ServiceContext.Metrics.RequestQueuedStop(MetricsContext, KestrelMetrics.Http3);
Internal\Infrastructure\KestrelConnectionOfT.cs (1)
33private KestrelMetrics Metrics => _serviceContext.Metrics;
Internal\KestrelServerImpl.cs (2)
201connectionDelegate = EnforceConnectionLimit(connectionDelegate, Options.Limits.MaxConcurrentConnections, Trace, ServiceContext.Metrics); 220multiplexedConnectionDelegate = EnforceConnectionLimit(multiplexedConnectionDelegate, Options.Limits.MaxConcurrentConnections, Trace, ServiceContext.Metrics);
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
WebHostBuilderKestrelExtensionsTests.cs (1)
120Assert.IsType<KestrelMetrics>(server.ServiceContext.Metrics);