Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet-counters doesn't display a counter until the app records a measurement #3743

Open
JamesNK opened this issue Mar 14, 2023 · 0 comments
Labels
dotnet-counters enhancement New feature or request
Milestone

Comments

@JamesNK
Copy link
Member

JamesNK commented Mar 14, 2023

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:

dotnet-counters-counters-display-on-use

Configuration

.NET 8 web app publishing counters.

dotnet-counters --version
7.0.410101+f99383213ea19741908f5aa3cf0ed400db2e5f0a

Regression?

Unknown

Other information

@JamesNK JamesNK added the bug Something isn't working label Mar 14, 2023
@tommcdon tommcdon added this to the 8.0.0 milestone Mar 20, 2023
@tommcdon tommcdon added dotnet-counters enhancement New feature or request and removed bug Something isn't working labels Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet-counters enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants