Skip to content

Commit a0399d5

Browse files
authored
Add GDPR declarations for Pyrefly shadow telemetry (#26108)
## Summary Adds GDPR classifications for the Pyrefly shadow telemetry introduced by microsoft/pyrx#9077. - Declares the paired-request, shadow lifecycle, child lifecycle, sampling, and type-server child lifecycle events. - Adds the Pyrefly shadow health properties to `language_server.crash`. - Adds `pyreflyextensioninstalled` to the existing `pyrefly.detection` declaration. All fields are closed-set system metadata used for feature insight or performance and health analysis. Duration and counter fields are marked as measurements. ## Testing Not run (GDPR metadata-only change). Copilot-Session: f79da128-47e2-4a55-854d-0cf09f4673ad
1 parent 918ddc0 commit a0399d5

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

src/client/telemetry/pylance.ts

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,13 +480,70 @@
480480
"symbolName" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
481481
}
482482
*/
483+
/* __GDPR__
484+
"language_server.shadow.paired_request" : {
485+
"method" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
486+
"primaryoutcome" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
487+
"shadowoutcome" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
488+
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
489+
"primarydurationms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo", "isMeasurement": true },
490+
"shadowdurationms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo", "isMeasurement": true },
491+
"shadowinflight" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo", "isMeasurement": true }
492+
}
493+
*/
494+
/* __GDPR__
495+
"language_server.shadow.lifecycle" : {
496+
"kind" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
497+
"reason" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
498+
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
499+
"exitcode" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
500+
"exitsignal" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
501+
"uptimems" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo", "isMeasurement": true },
502+
"startdurationms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo", "isMeasurement": true }
503+
}
504+
*/
505+
/* __GDPR__
506+
"language_server.shadow.child_lifecycle" : {
507+
"kind" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
508+
"expected" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
509+
"exitsignal" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
510+
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
511+
"exitcode" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo", "isMeasurement": true },
512+
"uptimems" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo", "isMeasurement": true }
513+
}
514+
*/
515+
/* __GDPR__
516+
"language_server.shadow.sampling" : {
517+
"reason" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
518+
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
519+
"windowms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo", "isMeasurement": true },
520+
"observed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo", "isMeasurement": true },
521+
"emitted" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo", "isMeasurement": true },
522+
"suppressedbyinterval" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo", "isMeasurement": true },
523+
"suppressedbycap" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo", "isMeasurement": true },
524+
"shadowdropped" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo", "isMeasurement": true }
525+
}
526+
*/
527+
/* __GDPR__
528+
"language_server/type_server_child_lifecycle" : {
529+
"kind" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
530+
"expected" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
531+
"exitsignal" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
532+
"lsversion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
533+
"exitcode" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo", "isMeasurement": true },
534+
"uptimems" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo", "isMeasurement": true }
535+
}
536+
*/
483537
/**
484538
* Telemetry event sent when LSP server crashes
485539
*/
486540
/* __GDPR__
487541
"language_server.crash" : {
488542
"oom" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" },
489543
"lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" },
544+
"pyreflyshadowexperimentenabled" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
545+
"pyreflyshadowserverstate" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
546+
"pyreflyshadowchildstate" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" },
490547
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
491548
}
492549
*/
@@ -503,6 +560,7 @@
503560
"hasenvironmentbinary" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" },
504561
"promptdismissed" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" },
505562
"notificationenabled" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" },
563+
"pyreflyextensioninstalled" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" },
506564
"lsversion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rchiodo" },
507565
"failed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "rchiodo" }
508566
}

0 commit comments

Comments
 (0)