Skip to content

Commit 5a16e8d

Browse files
committed
fix(telemetry): metrics emitted without the result property #4295
2024-01-18 08:15:00 [WARN]: Metric Event did not pass validation: Metric `session_end` was emitted without the `result` property.
1 parent 4e9ba53 commit 5a16e8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/telemetry/telemetryService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class DefaultTelemetryService {
101101
if (this.telemetryEnabled && !isAutomation()) {
102102
const currTime = new globals.clock.Date()
103103
// This is noisy when running tests in vscode.
104-
telemetry.session_end.emit({ value: currTime.getTime() - this.startTime.getTime() })
104+
telemetry.session_end.emit({ value: currTime.getTime() - this.startTime.getTime(), result: 'Succeeded' })
105105

106106
try {
107107
await fsCommon.writeFile(this.persistFilePath, JSON.stringify(this._eventQueue))

0 commit comments

Comments
 (0)