mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-10 00:48:23 -06:00
Fix names and types of a few telemetry events (#19257)
Fixes a few issues with some telemetry events: - The macro is organized as such: `TraceLoggingX(value, argName, [argDescription])`. A few args had a description set on the spot where the name should be. I added a name for a few of these. - `TraceLoggingBool` --> `TraceLoggingInt32` for `themeChoice` (we shouldn't be casting the evaluated int as a bool; it loses some of the data we care about) - improves the description for `themeChoice` to include information about the legacy values Checked through all our telemetry events and all of the args have a proper name set. We tend to use `TraceLoggingValue` too which automatically figures out the type that's being used, so that's also handled.
This commit is contained in:
parent
837e86c18c
commit
7055b99acc
@ -1324,9 +1324,9 @@ void CascadiaSettings::_researchOnLoad()
|
||||
g_hSettingsModelProvider,
|
||||
"ThemesInUse",
|
||||
TraceLoggingDescription("Data about the themes in use"),
|
||||
TraceLoggingBool(themeChoice, "Identifier for the theme chosen. 0 is system, 1 is light, 2 is dark, and 3 indicates any custom theme."),
|
||||
TraceLoggingBool(changedTheme, "True if the user actually changed the theme from the default theme"),
|
||||
TraceLoggingInt32(numThemes, "Number of themes in the user's settings"),
|
||||
TraceLoggingInt32(themeChoice, "ThemeClass", "Identifier for the theme chosen. 0 is system (legacySystem = 6), 1 is light (legacyLight = 5), 2 is dark (legacyDark = 4), and 3 indicates any custom theme."),
|
||||
TraceLoggingBool(changedTheme, "ChangedTheme", "True if the user actually changed the theme from the default theme"),
|
||||
TraceLoggingInt32(numThemes, "NumberOfThemes", "Number of themes in the user's settings"),
|
||||
TraceLoggingKeyword(MICROSOFT_KEYWORD_MEASURES),
|
||||
TelemetryPrivacyDataTag(PDT_ProductAndServiceUsage));
|
||||
|
||||
@ -1348,7 +1348,7 @@ void CascadiaSettings::_researchOnLoad()
|
||||
g_hSettingsModelProvider,
|
||||
"SendInputUsage",
|
||||
TraceLoggingDescription("Event emitted upon settings load, containing the number of sendInput actions a user has"),
|
||||
TraceLoggingInt32(collectSendInput(), "Number of sendInput actions in the user's settings"),
|
||||
TraceLoggingInt32(collectSendInput(), "NumberOfSendInputActions", "Number of sendInput actions in the user's settings"),
|
||||
TraceLoggingKeyword(MICROSOFT_KEYWORD_MEASURES),
|
||||
TelemetryPrivacyDataTag(PDT_ProductAndServiceUsage));
|
||||
|
||||
@ -1365,8 +1365,8 @@ void CascadiaSettings::_researchOnLoad()
|
||||
g_hSettingsModelProvider,
|
||||
"MarksProfilesUsage",
|
||||
TraceLoggingDescription("Event emitted upon settings load, containing the number of profiles opted-in to scrollbar marks"),
|
||||
TraceLoggingInt32(totalAutoMark, "Number of profiles for which AutoMarkPrompts is enabled"),
|
||||
TraceLoggingInt32(totalShowMarks, "Number of profiles for which ShowMarks is enabled"),
|
||||
TraceLoggingInt32(totalAutoMark, "NumberOfAutoMarkPromptsProfiles", "Number of profiles for which AutoMarkPrompts is enabled"),
|
||||
TraceLoggingInt32(totalShowMarks, "NumberOfShowMarksProfiles", "Number of profiles for which ShowMarks is enabled"),
|
||||
TraceLoggingKeyword(MICROSOFT_KEYWORD_MEASURES),
|
||||
TelemetryPrivacyDataTag(PDT_ProductAndServiceUsage));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user