-
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] Metrics Feature Switch #92019
Conversation
@ericstj please have a look and approve it if you don't see any concerns with it. Thanks! |
src/libraries/System.Diagnostics.DiagnosticSource/tests/TestNotSupported.cs
Outdated
Show resolved
Hide resolved
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.
This LGTM and I approve for RC2.
One ask is to double check that this will integrate well by staging the changes you want to make in the SDK and confirming the right default / feature enabled behavior. I know I've mixed up defaults or true/false values more than once myself.
@artl93 this is ready for your approval as well. |
I am currently doing some more tests. Please hold merging till I finish. nothing alarming so far :-) |
@ericstj I have done more manual testing building and running as AOT. I confirmed when the switch is not defined or it is defined with |
For my education, what do you mean by, "When having it"? Do you mean after merge and the SDK is produced? |
This change in dotnet/runtime will require corresponding change in the SDK targets to expose this new feature to the build. Those changes will look similar to these: |
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.
M2 approved. Thanks!
Fixes #89880
Backport of #91767 to release/8.0
/cc @tarekgh
Customer Impact
The introduction of a feature switch enables the option to disable the metrics feature, aiding in trimming and AOT scenarios. This modification addresses and resolves the performance regression observed in Xamarin app startup scenarios. For additional information, please refer to the following issue: #89880.
Testing
Successfully ran all regressions test and added a new test covering testing when the new switch is enabled.
Risk
We haven't made any alterations or adjustments to the code or logic when the new switch is left disabled. Therefore, any modifications will only become apparent when the switch is activated. The risk of this change adversely affecting any existing, functional functionality is exceedingly low.
IMPORTANT: If this backport is for a servicing release, please verify that:
The PR target branch is
release/X.0-staging
, notrelease/X.0
.If the change touches code that ships in a NuGet package, you have added the necessary package authoring and gotten it explicitly reviewed.