66
77
88// =============================================================================
9- // CHECK 0: UniqueMachines with Telemetry Changes
9+ // CHECK 0: UniqueMachines with new telemetry
1010// Shows unique machines per version for builds >= 1.23.10781012 (all stable + pre-release).
1111// Use this to confirm the latest pre-release build has real users.
1212// =============================================================================
@@ -23,9 +23,7 @@ filtered
2323
2424
2525// =============================================================================
26- // CHECK 1: Are all 4 events arriving? (3 new + 1 enhanced)
27- // Expected: at least 1 row per event. If any row shows 0, that event is broken.
28- // Broken down by extension version so you can confirm the new build is reporting.
26+ // CHECK 1: Are all 4 events arriving? (Only versions with ⚠️ NO DATA YET are displayed)
2927// =============================================================================
3028let allEvents = datatable (EventName: string ) [
3129 "ms-python.vscode-python-envs/manager_registration.failed" ,
@@ -53,11 +51,12 @@ allEvents
5351 EventCount = coalesce (EventCount, 0 ),
5452 UniqueMachines = coalesce (UniqueMachines, 0 ),
5553 Status = iff (coalesce (EventCount, 0 ) > 0 , "✅ RECEIVING DATA" , "⚠️ NO DATA YET" )
54+ | where Status == "⚠️ NO DATA YET"
5655| order by EventName asc , ExtVersion desc ;
5756
5857
5958// =============================================================================
60- // CHECK 2: Enhanced event — does "result" property exist?
59+ // CHECK 2: MANAGER_REGISTRATION_DURATION event success rate
6160// The existing event previously had only "duration". Now it should have "result".
6261// Expected: rows with result = "success" (should be the majority) and maybe a few "error".
6362// If result is empty/"", the property isn't being sent correctly.
@@ -81,7 +80,7 @@ RawEventsVSCodeExt
8180
8281
8382// =============================================================================
84- // CHECK 3: MANAGER_REGISTRATION.SKIPPED — property validation
83+ // CHECK 3: MANAGER_REGISTRATION.SKIPPED (Percentage of users don't have each tool)
8584// Expected: managerName in {conda, pyenv, pipenv, poetry}, reason = "tool_not_found"
8685// These should be common — most users don't have all 4 tools.
8786// =============================================================================
@@ -100,10 +99,12 @@ RawEventsVSCodeExt
10099| extend ExtVersion = tostring (Properties["common.extversion" ])
101100| extend _minor = toint (extract ("^1\\.(\\d+)" , 1 , ExtVersion)), _patch = tolong (extract ("^1\\.\\d+\\.(\\d+)" , 1 , ExtVersion))
102101| where _minor > 23 or (_minor == 23 and _patch >= 10781012 )
102+ | extend ManagerName = tostring (Properties.managername), Reason = tostring (Properties.reason)
103+ | where isnotempty (ManagerName) and isnotempty (Reason)
103104| summarize
104105 EventCount = count (),
105106 UniqueMachines = dcount (VSCodeMachineId)
106- by ManagerName = tostring (Properties.managername) , Reason = tostring (Properties.reason)
107+ by ManagerName, Reason
107108| extend TotalUniqueMachines = totalMachines
108109| extend MachinePct = round (todouble (UniqueMachines) / todouble (TotalUniqueMachines) * 100 , 1 )
109110| order by EventCount desc ;
0 commit comments