Skip to content

Commit 0f29224

Browse files
authored
feat: add workflow telemetry traces (#995)
Instrument the main user workflows with telemetry spans, following OpenTelemetry conventions for span outcomes. - Trace workspace open (sidebar / URI / command) and the workspace picker, recording workspace and agent context without identifying names. - Trace diagnostic commands (speed test, support bundle, telemetry export) and workspace start / update prompts. - Add per-workflow instrumentation modules (workspaceOpen, diagnostics) over shared outcome helpers; callers declare telemetry dimensions explicitly (e.g. open `source`) rather than inferring them from arguments. - Map outcomes to OTel: success / aborted / error span results, `error.type` on errors, and UNSET status for intentional cancellation. Closes #986
1 parent 8c11d12 commit 0f29224

27 files changed

Lines changed: 1333 additions & 220 deletions

src/api/authInterceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class AuthInterceptor implements vscode.Disposable {
9595
}
9696

9797
this.logger.debug("Received 401 response, attempting recovery");
98-
return this.authTelemetry.traceAuthRecovery(async (recorder) => {
98+
return this.authTelemetry.traceRecovery(async (recorder) => {
9999
recorder.logReceived();
100100

101101
// 1) OAuth refresh path.

0 commit comments

Comments
 (0)