Skip to content

Commit 4a21bf8

Browse files
committed
update
1 parent 7c29535 commit 4a21bf8

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

analysis/kusto/00-telemetry-validation.kql

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ RawEventsVSCodeExt
7474
HasDuration = countif(todouble(Properties.duration) > 0)
7575
| extend
7676
ResultPopulatedPct = round(todouble(HasResult) / todouble(TotalEvents) * 100, 1),
77+
ErrorPct = round(todouble(ResultError) / todouble(HasResult) * 100, 2),
7778
Status = iff(HasResult == TotalEvents, "✅ ALL EVENTS HAVE result", "⚠️ SOME EVENTS MISSING result");
7879

7980

@@ -90,8 +91,19 @@ RawEventsVSCodeExt
9091
| where _minor > 23 or (_minor == 23 and _patch >= 10781012)
9192
| summarize
9293
EventCount = count(),
93-
UniqueMachines = dcount(VSCodeMachineId)
94+
UniqueMachines = dcount(VSCodeMachineId),
95+
TotalUniqueMachines = dcount(VSCodeMachineId)
9496
by ManagerName = tostring(Properties.managername), Reason = tostring(Properties.reason)
97+
| extend TotalUniqueMachines = toscalar(
98+
RawEventsVSCodeExt
99+
| where ServerTimestamp > ago(7d)
100+
| where EventName == "ms-python.vscode-python-envs/manager_registration.skipped"
101+
| extend ExtVersion = tostring(Properties["common.extversion"])
102+
| extend _minor = toint(extract("^1\\.(\\d+)", 1, ExtVersion)), _patch = tolong(extract("^1\\.\\d+\\.(\\d+)", 1, ExtVersion))
103+
| where _minor > 23 or (_minor == 23 and _patch >= 10781012)
104+
| summarize dcount(VSCodeMachineId)
105+
)
106+
| extend MachinePct = round(todouble(UniqueMachines) / todouble(TotalUniqueMachines) * 100, 1)
95107
| order by EventCount desc;
96108

97109

0 commit comments

Comments
 (0)