Skip to content

Commit 0a34888

Browse files
committed
clean up
1 parent 724167e commit 0a34888

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

src/common/telemetry/constants.ts

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export enum EventNames {
4040
* - toolName: string (the tool being used: venv, conda, poetry, etc.)
4141
*/
4242
ENVIRONMENT_TOOL_USAGE = 'ENVIRONMENT_TOOL_USAGE',
43+
/**
4344
* Telemetry event for environment discovery per manager.
4445
* Properties:
4546
* - managerId: string (the id of the environment manager)
@@ -209,14 +210,24 @@ export interface IEventNamePropertyMapping {
209210
*/
210211
[EventNames.ENVIRONMENT_TOOL_USAGE]: {
211212
toolName: string;
212-
"environment_discovery": {
213-
"managerId": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
214-
"result": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
215-
"envCount": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "eleanorjboyd" },
216-
"errorType": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
217-
"<duration>": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "eleanorjboyd" }
218-
}
219-
*/
213+
environment_discovery: {
214+
managerId: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; owner: 'eleanorjboyd' };
215+
result: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; owner: 'eleanorjboyd' };
216+
envCount: {
217+
classification: 'SystemMetaData';
218+
purpose: 'FeatureInsight';
219+
isMeasurement: true;
220+
owner: 'eleanorjboyd';
221+
};
222+
errorType: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; owner: 'eleanorjboyd' };
223+
'<duration>': {
224+
classification: 'SystemMetaData';
225+
purpose: 'FeatureInsight';
226+
isMeasurement: true;
227+
owner: 'eleanorjboyd';
228+
};
229+
};
230+
};
220231
[EventNames.ENVIRONMENT_DISCOVERY]: {
221232
managerId: string;
222233
result: 'success' | 'error' | 'timeout';

0 commit comments

Comments
 (0)