27 references to AddMetrics
Microsoft.AspNetCore.HeaderParsing (1)
HeaderParsingServiceCollectionExtensions.cs (1)
35.AddMetrics();
Microsoft.AspNetCore.Hosting (3)
GenericHost\GenericWebHostBuilder.cs (1)
83services.AddMetrics();
GenericHost\SlimWebHostBuilder.cs (1)
57services.AddMetrics();
WebHostBuilder.cs (1)
297services.AddMetrics();
Microsoft.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
406services.AddMetrics();
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterServiceCollectionExtensions.cs (1)
39services.AddMetrics();
Microsoft.AspNetCore.Routing (1)
DependencyInjection\RoutingServiceCollectionExtensions.cs (1)
47services.AddMetrics();
Microsoft.AspNetCore.Routing.Tests (1)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (1)
358services.AddMetrics();
Microsoft.AspNetCore.SignalR (1)
SignalRDependencyInjectionExtensions.cs (1)
41services.AddMetrics();
Microsoft.Extensions.Diagnostics (1)
Metrics\MetricsServiceExtensions.cs (1)
58services.AddMetrics();
Microsoft.Extensions.Diagnostics.HealthChecks.Common (3)
CommonHealthChecksExtensions.TelemetryPublisher.cs (3)
22.AddMetrics() 36.AddMetrics() 50.AddMetrics()
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
ResourceMonitoringServiceCollectionExtensions.cs (1)
64_ = services.AddMetrics();
Microsoft.Extensions.Hosting (1)
HostBuilder.cs (1)
330services.AddMetrics();
Microsoft.Extensions.Http (1)
DependencyInjection\HttpClientFactoryServiceCollectionExtensions.cs (1)
33services.AddMetrics();
Microsoft.Extensions.Http.Resilience.PerformanceTests (1)
HttpClientFactory.cs (1)
38.AddMetrics()
Microsoft.Extensions.Http.Resilience.Tests (10)
Hedging\HedgingTests.cs (1)
47_services = new ServiceCollection().AddMetrics().AddLogging();
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (3)
203var services = new ServiceCollection().AddLogging().AddMetrics().AddFakeRedaction(); 247var services = new ServiceCollection().AddLogging().AddMetrics(); 278var clientBuilder = new ServiceCollection().AddLogging().AddMetrics().AddRedaction()
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (6)
32_builder.Services.AddMetrics(); 146var builder = new ServiceCollection().AddLogging().AddMetrics().AddHttpClient("test"); 158.AddMetrics() 182var builder = new ServiceCollection().AddLogging().AddMetrics().AddHttpClient("test"); 211var builder = new ServiceCollection().AddLogging().AddMetrics().AddHttpClient("test"); 264var builder = new ServiceCollection().AddLogging().AddMetrics().AddHttpClient("test").AddStandardResilienceHandler();