-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Modify EventCounter usage to support the new metric APIs as well #33387
Comments
I'll start with Hosting, but if this pattern works well, we have a few more metrics sources to address
|
Thanks for contacting us. We're moving this issue to the |
@shirhatti Can you update this issue with current state and re-milestone it as needed? |
Thanks for contacting us. We're moving this issue to the |
I forgot we had this issue. The current path I want to explore is if we can have the runtime automatically create a Meter with the same name for any EventSource that creates counters. If that path was successful ASP.Net wouldn't need to do any specific work until you wanted new features not available with EventCounters (such as histograms for latency percentiles). |
@davidfowl @adityamandaleeka @noahfalk @tommcdon - from my initial spelunking of this repo, I was expecting to see that ASP.NET Core would be extensively using Meters, but from what I can tell, it's not using it yet? [Microsoft.AspNetCore.Hosting]
Current Requests 0
Failed Requests 0
Request Rate (Count / 1 sec) 0
Total Requests 45 to be updated to be dimensioned histogram meters based on the path that is being used? Added #79371 to consider where we want the BCL to support meters |
I think we want very simple meters with very simple dimensions in the core framework. Users can make their own meters if they need lots of other dimensions. |
See #46834 |
Got it. I didn't realize this was being used as the meta-issue. |
Currently blocked on the completion of #47618. |
@JamesNK Is this done now? |
Added a couple of work items to do in .NET 8.
It will never be done 😈 |
@JamesNK Is the rest of this still targeting .NET 8? |
Won't have time for AuthN/AuthZ counters. Everything else will happen in .NET 8. |
Now that you've merged the docs PR, can this be closed @JamesNK ? (since we already have a separate issue to track AuthN/AuthZ) |
Feels weird seeing this issue closed. End of an era. 😆 |
Tasks:
ConcurrencyLimiterEventSource(obsolete in .NET 8)Add authn/authz countersMoved a new issue: Investigate AuthN/AuthZ metrics in ASP.NET Core #47603I've been experimenting with how a library could optionally support the new Meter APIs while also being back-compatible with pre-existing EventCounters. It would be nice to test this on a more real-world use case in ASP.Net to see if we like how it plays out. If it doesn't look good of course we could always change the pattern.
The rough pattern I had was to:
In total it looked like this...
New Meter code + app logic:
Pre-existing EventCounter code + forwarder:
@shirhatti
The text was updated successfully, but these errors were encountered: