From ff042bd5ddfb82d70153ae2c3033d5c7b904fb73 Mon Sep 17 00:00:00 2001 From: Luciana Abud <45497113+luabud@users.noreply.github.com> Date: Tue, 12 Nov 2024 17:01:26 -0800 Subject: [PATCH] Add failed telemetry property --- src/client/telemetry/pylance.ts | 100 ++++++++++++++++++++++---------- 1 file changed, 69 insertions(+), 31 deletions(-) diff --git a/src/client/telemetry/pylance.ts b/src/client/telemetry/pylance.ts index 4a79d1b2afa9..e1bee420e5fa 100644 --- a/src/client/telemetry/pylance.ts +++ b/src/client/telemetry/pylance.ts @@ -3,13 +3,15 @@ "duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true }, "errorname" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" }, "errorstack" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" }, - "lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ "language_server.jinja_usage" : { - "lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - "openfileextensions" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } , + "openfileextensions" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -17,7 +19,8 @@ "duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true }, "errorname" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" }, "errorstack" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" }, - "lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -29,7 +32,8 @@ "method" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "modulehash" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "moduleversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - "resultlength" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true } + "resultlength" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -37,7 +41,8 @@ "duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true }, "errorname" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" }, "errorstack" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" }, - "lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -59,14 +64,16 @@ "peakrssmb" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, "resolverid" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, "rssmb" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, - "diagnosticsseen" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "diagnosticsseen" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ "language_server/analysis_exception" : { "errorname" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" }, "errorstack" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" }, - "lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } + "lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -74,7 +81,8 @@ "autoimport" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "dictionarykey" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "memberaccess" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - "keyword" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "keyword" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -85,7 +93,8 @@ "overallsuccesses" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "overalltotal" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "successes" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - "total" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "total" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -95,7 +104,8 @@ "lastknownmodulehash" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, "packagehash" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - "unknownmembernamehash" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "unknownmembernamehash" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -133,24 +143,30 @@ "tokenizetime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, "totaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, "typeevalcount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, - "typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } + "typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, } */ /* __GDPR__ "language_server/exception_intellicode" : { "common.remotename" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - "common.uikind" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "common.uikind" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ "language_server/execute_command" : { "lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, - "name" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "name" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ "language_server/goto_def_inside_string" : { - "resultlength" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "resultlength" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -167,7 +183,9 @@ "reason_typeshed_path_not_found" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "resolverid" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "success" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - "total" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "total" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -197,7 +215,8 @@ "unresolvedmodules" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "unresolvedpackages" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "unresolvedpackageslowercase" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - "unresolvedtotal" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "unresolvedtotal" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -216,14 +235,17 @@ "tokenizetime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, "totaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, "typeevalcount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, - "typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } + "typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ "language_server/installed_packages" : { "packagesbitarray" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "packageslowercase" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - "resolverid" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "resolverid" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -245,7 +267,8 @@ "methods" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "modeltype" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, "modelversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, - "selecteditemtelemetrybuildtimeinms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } + "selecteditemtelemetrybuildtimeinms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -255,7 +278,8 @@ "enabled" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "installsource" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, - "startup" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "startup" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -264,7 +288,8 @@ "errorstack" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" }, "installsource" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, - "reason" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } + "reason" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -273,7 +298,8 @@ "errorstack" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" }, "installsource" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, - "reason" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } + "reason" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -293,7 +319,9 @@ "totaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, "type" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "typeevalcount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, - "typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } + "typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, } */ /* __GDPR__ @@ -312,7 +340,8 @@ "tokenizetime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, "totaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, "typeevalcount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, - "typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } + "typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -321,7 +350,8 @@ "lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "method" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "modulehash" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - "resultlength" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true } + "resultlength" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ @@ -358,7 +388,9 @@ "uselibrarycodefortypes" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "variableinlaytypehints" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "watchforlibrarychanges" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - "workspacecount" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + "workspacecount" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, } */ /* __GDPR__ @@ -370,7 +402,9 @@ "tokenfullms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, "tokenrangems" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, "totalms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, - "userindexms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } + "userindexms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" } } */ /* __GDPR__ @@ -389,12 +423,15 @@ "tokenizetime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, "totaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, "typeevalcount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, - "typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } + "typeevaltime" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /* __GDPR__ "language_server/workspaceindex_threshold_reached" : { - "index_count" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } + "index_count" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ /** @@ -403,6 +440,7 @@ /* __GDPR__ "language_server.crash" : { "oom" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" }, - "lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" } + "lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */