11// =============================================================================
2- // PRE-RELEASE TELEMETRY VALIDATION — Run before cutting a release
2+ // TELEMETRY VALIDATION
33// Checks that PR #1365 telemetry events are arriving with correct properties.
44// Each query is self-contained — just copy-paste into Azure Data Explorer.
55// =============================================================================
66
77
8+ // =============================================================================
9+ // CHECK 0: UniqueMachines with Telemetry Changes
10+ // Shows unique machines per version for builds after 1.23.10781011 and 1.24.x.
11+ // Use this to confirm the latest pre-release build has real users.
12+ // =============================================================================
13+ RawEventsVSCodeExt
14+ | where ServerTimestamp > ago (7 d )
15+ | where ExtensionName == "ms-python.vscode-python-envs"
16+ | where ExtensionVersion != ""
17+ | extend VersionSuffix = tolong (extract ("1\\.23\\.(\\d+)" , 1 , ExtensionVersion))
18+ | where VersionSuffix > 10781011 or ExtensionVersion startswith "1.24."
19+ | summarize UniqueMachines = dcount (VSCodeMachineId) by ExtensionVersion
20+ | order by ExtensionVersion desc ;
21+
22+
823// =============================================================================
924// CHECK 1: Are all 4 events arriving? (3 new + 1 enhanced)
1025// Expected: at least 1 row per event. If any row shows 0, that event is broken.
@@ -25,6 +40,8 @@ let observed = RawEventsVSCodeExt
2540 "ms-python.vscode-python-envs/extension.manager_registration_duration"
2641)
2742| extend ExtVersion = tostring (Properties["common.extversion" ])
43+ | extend VersionSuffix = tolong (extract ("1\\.23\\.(\\d+)" , 1 , ExtVersion))
44+ | where VersionSuffix > 10781011 or ExtVersion startswith "1.24."
2845| summarize EventCount = count (), UniqueMachines = dcount (VSCodeMachineId) by EventName, ExtVersion;
2946allEvents
3047| join kind =leftouter observed on EventName
0 commit comments