@@ -50,6 +50,38 @@ export enum EventNames {
5050 */
5151 ENVIRONMENT_DISCOVERY = 'ENVIRONMENT_DISCOVERY' ,
5252 MANAGER_READY_TIMEOUT = 'MANAGER_READY.TIMEOUT' ,
53+ /**
54+ * Telemetry event for individual manager registration failure.
55+ * Fires once per manager that fails during registration (inside safeRegister).
56+ * Properties:
57+ * - managerName: string (e.g. 'system', 'conda', 'pyenv', 'pipenv', 'poetry', 'shellStartupVars')
58+ * - errorType: string (classified error category from classifyError)
59+ */
60+ MANAGER_REGISTRATION_FAILED = 'MANAGER_REGISTRATION.FAILED' ,
61+ /**
62+ * Telemetry event fired when the setup block appears to be hung.
63+ * A watchdog timer fires after a deadline; if the setup completes normally,
64+ * the timer is cancelled and this event never fires.
65+ * Properties:
66+ * - failureStage: string (which phase was in progress when the watchdog fired)
67+ */
68+ SETUP_HANG_DETECTED = 'SETUP.HANG_DETECTED' ,
69+ /**
70+ * Telemetry event for when a manager skips registration because its tool was not found.
71+ * This is an expected outcome (not an error) and is distinct from MANAGER_REGISTRATION_FAILED.
72+ * Properties:
73+ * - managerName: string (e.g. 'conda', 'pyenv', 'pipenv', 'poetry')
74+ * - reason: string ('tool_not_found')
75+ */
76+ MANAGER_REGISTRATION_SKIPPED = 'MANAGER_REGISTRATION.SKIPPED' ,
77+ /**
78+ * Telemetry event for PET (Python Environment Tools) initialization timing.
79+ * Tracks how long it takes to create and start the native Python finder.
80+ * Properties:
81+ * - result: 'success' | 'error' | 'timeout'
82+ * - errorType: string (classified error category, on failure only)
83+ */
84+ PET_INIT_DURATION = 'PET.INIT_DURATION' ,
5385}
5486
5587// Map all events to their properties
@@ -62,10 +94,17 @@ export interface IEventNamePropertyMapping {
6294 [ EventNames . EXTENSION_ACTIVATION_DURATION ] : never | undefined ;
6395 /* __GDPR__
6496 "extension.manager_registration_duration": {
65- "duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" }
97+ "duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
98+ "result" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "StellaHuang95" },
99+ "failureStage" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "StellaHuang95" },
100+ "errorType" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "StellaHuang95" }
66101 }
67102 */
68- [ EventNames . EXTENSION_MANAGER_REGISTRATION_DURATION ] : never | undefined ;
103+ [ EventNames . EXTENSION_MANAGER_REGISTRATION_DURATION ] : {
104+ result : 'success' | 'error' ;
105+ failureStage ?: string ;
106+ errorType ?: string ;
107+ } ;
69108
70109 /* __GDPR__
71110 "environment_manager.registered": {
@@ -239,4 +278,48 @@ export interface IEventNamePropertyMapping {
239278 managerId : string ;
240279 managerKind : 'environment' | 'package' ;
241280 } ;
281+
282+ /* __GDPR__
283+ "manager_registration.failed": {
284+ "managerName": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "StellaHuang95" },
285+ "errorType": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "StellaHuang95" }
286+ }
287+ */
288+ [ EventNames . MANAGER_REGISTRATION_FAILED ] : {
289+ managerName : string ;
290+ errorType : string ;
291+ } ;
292+
293+ /* __GDPR__
294+ "setup.hang_detected": {
295+ "failureStage": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "StellaHuang95" },
296+ "<duration>": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "StellaHuang95" }
297+ }
298+ */
299+ [ EventNames . SETUP_HANG_DETECTED ] : {
300+ failureStage : string ;
301+ } ;
302+
303+ /* __GDPR__
304+ "manager_registration.skipped": {
305+ "managerName": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "StellaHuang95" },
306+ "reason": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "StellaHuang95" }
307+ }
308+ */
309+ [ EventNames . MANAGER_REGISTRATION_SKIPPED ] : {
310+ managerName : string ;
311+ reason : 'tool_not_found' ;
312+ } ;
313+
314+ /* __GDPR__
315+ "pet.init_duration": {
316+ "result": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
317+ "errorType": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
318+ "<duration>": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "eleanorjboyd" }
319+ }
320+ */
321+ [ EventNames . PET_INIT_DURATION ] : {
322+ result : 'success' | 'error' | 'timeout' ;
323+ errorType ?: string ;
324+ } ;
242325}
0 commit comments