@@ -601,27 +601,10 @@ export interface IEventNamePropertyMapping {
601601 "<duration>": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "eleanorjboyd" }
602602 }
603603 */
604+ // Numeric fields declared in the GDPR block are sent through the measurements payload.
604605 [ EventNames . PET_REFRESH ] : {
605606 result : 'success' | 'timeout' | 'error' ;
606- envCount ?: number ;
607- /** Number of discovered environments whose kind is Conda. Lets us slice refresh duration by conda footprint. */
608- condaEnvCount ?: number ;
609- /** Number of discovered environment managers (conda/pyenv/poetry/etc.). */
610- managerCount ?: number ;
611- unresolvedCount ?: number ;
612- workspaceDirCount ?: number ;
613- searchPathCount ?: number ;
614- attempt : number ;
615607 errorType ?: string ;
616- // breakdown* fields go through the measures payload (numeric); listed here for GDPR only.
617- /** ms in the Locators phase. */
618- breakdownLocators ?: number ;
619- /** ms walking PATH env var entries (not a file path). */
620- breakdownPathEnv ?: number ;
621- /** ms scanning global virtual-env dirs. */
622- breakdownGlobalVirtualEnvs ?: number ;
623- /** ms scanning workspace dirs. */
624- breakdownWorkspaces ?: number ;
625608 /** JSON-serialized Record<locatorName, ms>. Parse with parse_json() in Kusto. */
626609 locatorsJson ?: string ;
627610 /** PET crate version reported by the `info` RPC. 'unknown' if the call failed or the PET binary doesn't implement it. */
@@ -638,14 +621,14 @@ export interface IEventNamePropertyMapping {
638621 "workspaceDirCount": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "eleanorjboyd" },
639622 "envDirCount": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "eleanorjboyd" },
640623 "retryCount": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "eleanorjboyd" },
624+ "errorType": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
641625 "<duration>": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "eleanorjboyd" }
642626 }
643627 */
628+ // Numeric fields declared in the GDPR block are sent through the measurements payload.
644629 [ EventNames . PET_CONFIGURE ] : {
645630 result : 'success' | 'timeout' | 'error' | 'skipped' ;
646- workspaceDirCount ?: number ;
647- envDirCount ?: number ;
648- retryCount : number ;
631+ errorType ?: string ;
649632 } ;
650633
651634 /* __GDPR__
@@ -660,8 +643,8 @@ export interface IEventNamePropertyMapping {
660643 "<duration>": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "eleanorjboyd" }
661644 }
662645 */
646+ // `attempt` is declared in the GDPR block and sent through the measurements payload.
663647 [ EventNames . PET_PROCESS_RESTART ] : {
664- attempt : number ;
665648 result : 'success' | 'error' ;
666649 errorType ?: string ;
667650 /**
0 commit comments