-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
AtlasEngine: Remove experimental tag and add tracing #13939
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -893,6 +893,25 @@ try | |
settings->_hash = _calculateHash(settingsString, lastWriteTime); | ||
} | ||
|
||
// GH#13936: We're interested in how many users opt out of useAtlasEngine, | ||
// indicating major issues that would require us to disable it by default again. | ||
{ | ||
size_t enabled[2]{}; | ||
for (const auto& profile : settings->_activeProfiles) | ||
{ | ||
enabled[profile.UseAtlasEngine()]++; | ||
} | ||
|
||
TraceLoggingWrite( | ||
g_hSettingsModelProvider, | ||
"AtlasEngine_Usage", | ||
TraceLoggingDescription("Event emitted upon settings load, containing the number of profiles opted-in/out of useAtlasEngine"), | ||
TraceLoggingUIntPtr(enabled[0], "UseAtlasEngineDisabled", "Number of profiles for which AtlasEngine is disabled"), | ||
TraceLoggingUIntPtr(enabled[1], "UseAtlasEngineEnabled", "Number of profiles for which AtlasEngine is enabled"), | ||
TraceLoggingKeyword(MICROSOFT_KEYWORD_MEASURES), | ||
TelemetryPrivacyDataTag(PDT_ProductAndServiceUsage)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In team sync you mentioned a bunch of performance data we wanted to get insights into as well. Atlas resizing, etc. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd have to figure out how to implement them first and I felt like getting this crucial change in ASAP is much more important than that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with Leonard on this one. Let's start with simple |
||
} | ||
|
||
return *settings; | ||
} | ||
catch (const SettingsException& ex) | ||
|
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.
Do we maybe want to break this down further?
!HasUseAtlasEngineDisabled()
)and maybe a total number of profiles too? Trying to figure out how many folks actually just set this in
profiles.defaults
might complicate this...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.
We can infer all the first 3 points from the version number alone...
But I think I just realized that might not be added by default to the event data, right? In that case you're right, I'll have to add something like that.
Since the number of profiles is
UseAtlasEngineDisabled + UseAtlasEngineEnabled
I think we can infer that if needed for sure.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.
Ah right, we can infer that the user opted out if Disabled > 0. The version is part of the data we automatically get.
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.
Oh so I guess (Num Preview users)-(preview users with it disabled)=(preview users with it enabled, either by default or explicitly). Okay, that makes sense.