Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
#3057414 fix ceiling, update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Renat Shajmardanov committed Jan 21, 2022
1 parent f994a4d commit 177c87f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ public void Configure(

app.UseRouting();

var azureBillingMetricsGrabber = app.ApplicationServices.GetService<MetricsUpdater>();
Metrics.DefaultRegistry.AddBeforeCollectCallback(() => { azureBillingMetricsGrabber.Update(); });
var metricsUpdater = app.ApplicationServices.GetService<MetricsUpdater>();
Metrics.DefaultRegistry.AddBeforeCollectCallback(() => { metricsUpdater.Update(); });

// ASP.NET Core 3 or newer
app.UseEndpoints(endpoints => { endpoints.MapMetrics(); });
Expand Down

0 comments on commit 177c87f

Please sign in to comment.