-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[release/8.0] Only initialize listeners once #90932
Conversation
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries Issue DetailsBackport of #90902 to release/8.0 /cc @Tratcher Customer ImpactTestingRiskIMPORTANT: If this backport is for a servicing release, please verify that:
|
@Tratcher could you please add a test for the issue fixed here? I mean a test calling AddMetrics multiple times. |
@jeffhandley this issue needs your blessing to merge and track. Thanks! |
@Tratcher thanks for adding the test. When we get a green CI here, it will be good if you can backport this test to the main too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve of this fix for RC2. @Tratcher Did these tests get merged into main
as well?
The fix is in main. I'll merge the additional test into main after this. |
/backport to main |
Started backporting to main: https://github.com/dotnet/runtime/actions/runs/5956831413 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Backport of #90902 to release/8.0 for RC2.
AddMetrics uses an options validation workaround to initialize the MetricsSubscriptionManager and IMetricsListeners. However, if AddMetrics is called multiple times, it will do the initialization multiple times. IMetricsListener implementations may not be expecting that.
Customer Impact
IMetricsListener implementations may not expect/handle Initialize being called multiple times.
Testing
Manual
Risk
Low, this was a new component in RC1.