Skip to content

Commit 85a18d4

Browse files
authored
Add failed telemetry property (#24434)
To better understand when Pylance gets unresponsive
1 parent 63cbb30 commit 85a18d4

File tree

1 file changed

+69
-31
lines changed

1 file changed

+69
-31
lines changed

src/client/telemetry/pylance.ts

Lines changed: 69 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,24 @@
33
"duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true },
44
"errorname" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" },
55
"errorstack" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" },
6-
"lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
6+
"lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
7+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
78
}
89
*/
910
/* __GDPR__
1011
"language_server.jinja_usage" : {
11-
"lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
12-
"openfileextensions" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
12+
"lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } ,
13+
"openfileextensions" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
14+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
1315
}
1416
*/
1517
/* __GDPR__
1618
"language_server.ready" : {
1719
"duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true },
1820
"errorname" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" },
1921
"errorstack" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" },
20-
"lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
22+
"lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
23+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
2124
}
2225
*/
2326
/* __GDPR__
@@ -29,15 +32,17 @@
2932
"method" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
3033
"modulehash" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
3134
"moduleversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
32-
"resultlength" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true }
35+
"resultlength" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true },
36+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
3337
}
3438
*/
3539
/* __GDPR__
3640
"language_server.startup" : {
3741
"duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true },
3842
"errorname" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" },
3943
"errorstack" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" },
40-
"lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
44+
"lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
45+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
4146
}
4247
*/
4348
/* __GDPR__
@@ -59,22 +64,25 @@
5964
"peakrssmb" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
6065
"resolverid" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
6166
"rssmb" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
62-
"diagnosticsseen" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
67+
"diagnosticsseen" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
68+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
6369
}
6470
*/
6571
/* __GDPR__
6672
"language_server/analysis_exception" : {
6773
"errorname" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" },
6874
"errorstack" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" },
69-
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
75+
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
76+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
7077
}
7178
*/
7279
/* __GDPR__
7380
"language_server/completion_accepted" : {
7481
"autoimport" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
7582
"dictionarykey" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
7683
"memberaccess" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
77-
"keyword" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
84+
"keyword" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
85+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
7886
}
7987
*/
8088
/* __GDPR__
@@ -85,7 +93,8 @@
8593
"overallsuccesses" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
8694
"overalltotal" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
8795
"successes" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
88-
"total" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
96+
"total" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
97+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
8998
}
9099
*/
91100
/* __GDPR__
@@ -95,7 +104,8 @@
95104
"lastknownmodulehash" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
96105
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
97106
"packagehash" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
98-
"unknownmembernamehash" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
107+
"unknownmembernamehash" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
108+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
99109
}
100110
*/
101111
/* __GDPR__
@@ -133,24 +143,30 @@
133143
"tokenizetime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
134144
"totaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
135145
"typeevalcount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
136-
"typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
146+
"typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
147+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
137148
}
138149
*/
139150
/* __GDPR__
140151
"language_server/exception_intellicode" : {
141152
"common.remotename" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
142-
"common.uikind" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
153+
"common.uikind" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
154+
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
155+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
143156
}
144157
*/
145158
/* __GDPR__
146159
"language_server/execute_command" : {
147160
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
148-
"name" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
161+
"name" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
162+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
149163
}
150164
*/
151165
/* __GDPR__
152166
"language_server/goto_def_inside_string" : {
153-
"resultlength" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
167+
"resultlength" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
168+
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
169+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
154170
}
155171
*/
156172
/* __GDPR__
@@ -167,7 +183,9 @@
167183
"reason_typeshed_path_not_found" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
168184
"resolverid" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
169185
"success" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
170-
"total" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
186+
"total" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
187+
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
188+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
171189
}
172190
*/
173191
/* __GDPR__
@@ -197,7 +215,8 @@
197215
"unresolvedmodules" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
198216
"unresolvedpackages" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
199217
"unresolvedpackageslowercase" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
200-
"unresolvedtotal" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
218+
"unresolvedtotal" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
219+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
201220
}
202221
*/
203222
/* __GDPR__
@@ -216,14 +235,17 @@
216235
"tokenizetime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
217236
"totaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
218237
"typeevalcount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
219-
"typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
238+
"typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
239+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
220240
}
221241
*/
222242
/* __GDPR__
223243
"language_server/installed_packages" : {
224244
"packagesbitarray" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
225245
"packageslowercase" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
226-
"resolverid" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
246+
"resolverid" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
247+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
248+
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
227249
}
228250
*/
229251
/* __GDPR__
@@ -245,7 +267,8 @@
245267
"methods" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
246268
"modeltype" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
247269
"modelversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
248-
"selecteditemtelemetrybuildtimeinms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
270+
"selecteditemtelemetrybuildtimeinms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
271+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
249272
}
250273
*/
251274
/* __GDPR__
@@ -255,7 +278,8 @@
255278
"enabled" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
256279
"installsource" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
257280
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
258-
"startup" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
281+
"startup" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
282+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
259283
}
260284
*/
261285
/* __GDPR__
@@ -264,7 +288,8 @@
264288
"errorstack" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" },
265289
"installsource" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
266290
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
267-
"reason" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
291+
"reason" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
292+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
268293
}
269294
*/
270295
/* __GDPR__
@@ -273,7 +298,8 @@
273298
"errorstack" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" },
274299
"installsource" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
275300
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
276-
"reason" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
301+
"reason" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
302+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
277303
}
278304
*/
279305
/* __GDPR__
@@ -293,7 +319,9 @@
293319
"totaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
294320
"type" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
295321
"typeevalcount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
296-
"typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
322+
"typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
323+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
324+
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
297325
}
298326
*/
299327
/* __GDPR__
@@ -312,7 +340,8 @@
312340
"tokenizetime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
313341
"totaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
314342
"typeevalcount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
315-
"typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
343+
"typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
344+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
316345
}
317346
*/
318347
/* __GDPR__
@@ -321,7 +350,8 @@
321350
"lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
322351
"method" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
323352
"modulehash" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
324-
"resultlength" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true }
353+
"resultlength" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true },
354+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
325355
}
326356
*/
327357
/* __GDPR__
@@ -358,7 +388,9 @@
358388
"uselibrarycodefortypes" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
359389
"variableinlaytypehints" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
360390
"watchforlibrarychanges" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
361-
"workspacecount" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
391+
"workspacecount" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
392+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
393+
"lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
362394
}
363395
*/
364396
/* __GDPR__
@@ -370,7 +402,9 @@
370402
"tokenfullms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
371403
"tokenrangems" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
372404
"totalms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
373-
"userindexms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
405+
"userindexms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
406+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
407+
"lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
374408
}
375409
*/
376410
/* __GDPR__
@@ -389,12 +423,15 @@
389423
"tokenizetime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
390424
"totaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
391425
"typeevalcount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
392-
"typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
426+
"typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
427+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
393428
}
394429
*/
395430
/* __GDPR__
396431
"language_server/workspaceindex_threshold_reached" : {
397-
"index_count" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
432+
"index_count" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
433+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
434+
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
398435
}
399436
*/
400437
/**
@@ -403,6 +440,7 @@
403440
/* __GDPR__
404441
"language_server.crash" : {
405442
"oom" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" },
406-
"lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" }
443+
"lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" },
444+
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
407445
}
408446
*/

0 commit comments

Comments
 (0)