From 5dfa76d10b2225d8e104ba276d856b3b378fadf2 Mon Sep 17 00:00:00 2001 From: Rich Chiodo false Date: Wed, 22 Jul 2026 14:24:49 -0700 Subject: [PATCH] Add GDPR declaration for pyrefly.detection telemetry event The vscode-pylance PYREFLY.DETECTION event (sent as ms-python.python/pyrefly.detection) was shipping in Pylance 2026.2.109 / 2026.3.1 and firing on the same reporter as language_server.ready, but showed zero data in telemetry because the event name was not declared in this GDPR allow-list and was therefore scrubbed before ingestion. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a93b6348-9ac6-4951-8998-8d607333b267 --- src/client/telemetry/pylance.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/client/telemetry/pylance.ts b/src/client/telemetry/pylance.ts index 8e37b6aded2f..54746de496d8 100644 --- a/src/client/telemetry/pylance.ts +++ b/src/client/telemetry/pylance.ts @@ -490,3 +490,20 @@ "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } } */ +/** + * Telemetry event sent during background Pyrefly detection to measure the audience that could be + * offered a switch to Pyrefly. Reported once per workspace folder (per availability) for users who + * are not already on a Pyrefly diagnostics source. + */ +/* __GDPR__ + "pyrefly.detection" : { + "available" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" }, + "haspyreflytoml" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" }, + "haspyprojectsection" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" }, + "hasenvironmentbinary" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" }, + "promptdismissed" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" }, + "notificationenabled" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" }, + "lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" }, + "failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" } + } +*/