We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13015d1 commit c93a868Copy full SHA for c93a868
src/Prometheus.Client.DependencyInjection/ServiceCollectionExtensions.cs
@@ -1,5 +1,6 @@
1
using Microsoft.Extensions.DependencyInjection;
2
using Prometheus.Client.Abstractions;
3
+using Prometheus.Client.Collectors;
4
using Prometheus.Client.Collectors.Abstractions;
5
6
namespace Prometheus.Client.DependencyInjection
@@ -8,7 +9,7 @@ public static class ServiceCollectionExtensions
8
9
{
10
public static void AddMetricFactory(this IServiceCollection services)
11
- AddMetricFactory(services, Metrics.DefaultCollectorRegistry);
12
+ services.AddMetricFactory(new CollectorRegistry());
13
}
14
15
public static void AddMetricFactory(this IServiceCollection services, ICollectorRegistry collectorRegistry)
0 commit comments