You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Record local telemetry for the OAuth and 401-recovery paths so latency
and failure modes show up alongside the rest of the local telemetry
stream.
Auth events (src/instrumentation/auth.ts):
- `auth.token_refreshed`: OAuth refresh attempt with `trigger`
(`background` / `reactive`).
- `auth.token_refresh.deduped`: emitted when a refresh call joins an
in-flight refresh so the dropped trigger stays countable.
- `auth.unauthorized_intercepted`: recovery path for a 401, with
`recovery` (`refresh_success` / `login_required` / `none`) and
`refreshAttempted`.
- `auth.login_prompted`: modal login prompt outcome, with `trigger`
and a `reason` on abort/failure.
Shared telemetry plumbing picks up a `measurements` argument on
`TelemetryService.trace`, span outcome helpers (`markFailure` /
`markAborted`), and typed properties on `Span`. The SSH and WebSocket
instrumentation modules migrate to the typed property API. Test
helpers add `enableLocalTelemetry`, `TestSink.expectOne`, and
`createMockServiceContainer`.
First of two stacked PRs replacing #948. Closes part of #906; the
workspace half lands in #963.
0 commit comments