Commit 0f29224
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 #9861 parent 8c11d12 commit 0f29224
27 files changed
Lines changed: 1333 additions & 220 deletions
File tree
- src
- api
- core
- instrumentation
- remote
- telemetry
- export
- writers/otlp
- uri
- test
- mocks
- unit
- command
- core
- instrumentation
- telemetry
- export
- writers/otlp
- __golden__
- uri
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
0 commit comments