opentelemetry-dotnet-contrib
                                
                                
                                
                                    opentelemetry-dotnet-contrib copied to clipboard
                            
                            
                            
                        EventCounter -> Metric API instrumentation
An EventCounter listener which can get metrics emitted using EventCounter, and in-turn invoke the new Metric API. https://docs.microsoft.com/dotnet/core/diagnostics/event-counters
@hananiel Assigning this to you since you mentioned interest in contributing this!
Is the current plan to have this in the GA version or only coming later (which is fine)?
This is not part of the API/SDK. This will likely be hosted in the -contrib repo, but no timelines yet. (One good thing is, we are not likely blocked by semantic conventions for the stable release of this, once code is ready)
Sounds good, thanks for sharing!
Looking forward!
I am working on making this instrumentation more stable. I will be
- Add / enable testing
 - Cleaning up implementation
 - Looking into different possible bad scenarios, like enabling the extension twice on the same provider
 - Filtering out metrics covered by other instrumentation (
Runtime,Process)- Ensure it works in conjunction with other instrumentation so none of the events will be lost
 
 - Checking for memory leaks and minimize memory footprint as it will be enabled for the full lifetime of most applications that use it
- Don't allocate memory after startup