Skip to content

Commit

Permalink
Also add duration
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Raj committed Feb 20, 2024
1 parent d38561e commit 7020d70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/languageServer/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class LanguageServerWatcher implements IExtensionActivationService, ILang
// Start the language server.
if (startupStopWatch) {
// It means that startup is triggering this code, track time it takes since startup to activate this code.
sendTelemetryEvent(EventName.LANGUAGE_SERVER_TRIGGER_DURATION, undefined, {
sendTelemetryEvent(EventName.LANGUAGE_SERVER_TRIGGER_DURATION, startupStopWatch.elapsedTime, {
triggerTime: startupStopWatch.elapsedTime,
});
}
Expand Down
3 changes: 2 additions & 1 deletion src/client/telemetry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,8 @@ export interface IEventNamePropertyMapping {
*/
/* __GDPR__
"language_server_trigger_duration" : {
"triggerTime" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "karrtikr" },
"duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "karrtikr" },
"triggerTime" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "karrtikr" }
}
*/
[EventName.LANGUAGE_SERVER_TRIGGER_DURATION]: {
Expand Down

0 comments on commit 7020d70

Please sign in to comment.