Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/common/telemetry/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,15 @@ export enum EventNames {
* - errorType: string (classified error category, on failure only)
*/
MANAGER_LAZY_INIT = 'MANAGER.LAZY_INIT',
/**
* Telemetry event fired when the JSON CLI fallback is used for environment discovery.
* Triggered when the PET JSON-RPC server mode is exhausted after all restart attempts.
* Properties:
* - operation: 'refresh' | 'resolve'
* - result: 'success' | 'error'
* - duration: number (milliseconds taken for the CLI operation)
*/
PET_JSON_CLI_FALLBACK = 'PET.JSON_CLI_FALLBACK',
}

// Map all events to their properties
Expand Down Expand Up @@ -403,4 +412,16 @@ export interface IEventNamePropertyMapping {
toolSource: string;
errorType?: string;
};

/* __GDPR__
"pet.json_cli_fallback": {
"operation": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "StellaHuang95" },
"result": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "StellaHuang95" },
"<duration>": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "StellaHuang95" }
}
*/
[EventNames.PET_JSON_CLI_FALLBACK]: {
operation: 'refresh' | 'resolve';
result: 'success' | 'error';
};
}
Loading
Loading