-
Notifications
You must be signed in to change notification settings - Fork 297
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
Provide .NET Runtime instrumentation libraries #204
Comments
I would like to contribute to this issue. I'll try to create a PR in the next days. |
Nice to see i am not the only one that looks for this 😎 |
Merged
@reyang Thanks for the sharing with this feature request, It will be useful so much to add such kind of instrumentation. |
@reyang Can this be closed? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Request
.NET has several runtime metrics exposed via EventCounters https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/RuntimeEventSource.cs.
In the near future it is impossible for .NET runtime to completely switch over to the Meter API since these APIs are not backported to old versions of runtime.
Describe the solution you'd like:
The ask here is to provide an instrumentation library which exposes runtime metrics via Meter API, so users who need these could leverage them without having to use EventCounter wrappers.
Describe alternatives you've considered.
Leveraging something like #177 or having the users implementing the Meter/Instrument by themselves.
Leveraging the EventCounter listener/adapter has lots of problems with the scheduling - EventCounters would require the user to configure the polling schedule, which makes it less efficient for pull exporters (e.g. Prometheus), and hard to manage for push exporters (e.g. if OTLP exporter is exporting every 10 seconds, what's the proper polling period for EventCounters?)
The text was updated successfully, but these errors were encountered: