-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
EventCounters unexpectedly stop reporting data when first of two listeners disconnects #61353
Comments
@noahfalk Is this issue only impacting .NET 6 or earlier versions as well? Is the fix going to be backported to all affected versions? |
@dpk83 this issue affects all runtimes that have support for dotnet-counters. A fix has not been checked in yet for this issue, when it is we will not backport it unless there is a business justification for it - i.e. a customer is blocked on it. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
One our internal partner teams at Microsoft reported that if they start an EventListener for EventCounters, then separately start PerfView to listen to counters, then stop the PerfView session the counter information stops flowing to their EventListener. Given that the EventListener never stopped listening they expected the counter events to continue.
Reproduction Steps
Start EventListener for EventCounters, then start + stop a PerfView ETW based session for the same counter events.
Expected behavior
Counter events continue to be posted to EventListener
Actual behavior
Counter events stop being posted
Regression?
Unknown, but probably not
Known Workarounds
No response
Configuration
I think this is .NET Core 6 (preview builds), amd64, but the issue probably occurs regardless of version/architecture
Other information
The code for CounterGroup appears to stop sending upon receiving a Disable command from any listener, regardless of the presence of other listeners. https://github.com/dotnet/runtime/blob/v5.0.11/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/CounterGroup.cs#L67
The text was updated successfully, but these errors were encountered: