You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experimenting with adding metrics to ASP.NET Core (and eventually alongside most or all existing event source counters). See dotnet/aspnetcore#46834
I noticed that dotnet-counters doesn't display a metrics counters until it is used. For example, hosting counters that record a HTTP request is starting, stopping, latency, etc, aren't displayed until a web request is made. That is confusing to users who would expect to see the counters but with zero values. For example, they'd expect to see the app has requests-failed = 0 on startup.
Screen recording showing that the Microsoft.AspNetCore.Hosting.Temp counters (using metrics) aren't displayed until a HTTP request is made:
Any update on this? I have a similar issue with any Counter metric we use, and I don't know of nice way to easily initialize them to 0 on every app startup.
Description
I'm experimenting with adding metrics to ASP.NET Core (and eventually alongside most or all existing event source counters). See dotnet/aspnetcore#46834
I noticed that dotnet-counters doesn't display a metrics counters until it is used. For example, hosting counters that record a HTTP request is starting, stopping, latency, etc, aren't displayed until a web request is made. That is confusing to users who would expect to see the counters but with zero values. For example, they'd expect to see the app has
requests-failed = 0
on startup.Screen recording showing that the
Microsoft.AspNetCore.Hosting.Temp
counters (using metrics) aren't displayed until a HTTP request is made:Configuration
.NET 8 web app publishing counters.
Regression?
Unknown
Other information
The text was updated successfully, but these errors were encountered: