File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ static void Main()
1212 var registry = new CollectorRegistry ( ) ;
1313 var options = new MetricServerOptions
1414 {
15- CollectorRegistryInstance = registry
15+ CollectorRegistry = registry
1616 } ;
1717 var factory = new MetricFactory ( registry ) ;
1818
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public static async Task Main(string[] args)
1919 services . AddSingleton < IMetricServer > ( sp => new MetricServer (
2020 new MetricServerOptions
2121 {
22- CollectorRegistryInstance = sp . GetRequiredService < ICollectorRegistry > ( ) ,
22+ CollectorRegistry = sp . GetRequiredService < ICollectorRegistry > ( ) ,
2323 UseDefaultCollectors = true
2424 } ) ) ;
2525 services . AddHostedService < Worker > ( ) ;
@@ -41,4 +41,4 @@ public static async Task Main(string[] args)
4141 metricServer . Stop ( ) ;
4242 }
4343 }
44- }
44+ }
You can’t perform that action at this time.
0 commit comments