Skip to content

feat: add telemetry for CLI and remote setup#993

Open
EhabY wants to merge 2 commits into
mainfrom
feat/985-telemetry-traces
Open

feat: add telemetry for CLI and remote setup#993
EhabY wants to merge 2 commits into
mainfrom
feat/985-telemetry-traces

Conversation

@EhabY
Copy link
Copy Markdown
Collaborator

@EhabY EhabY commented Jun 8, 2026

Summary

  • Add a parent cli.resolve trace with bounded child phases for cache lookup, version checks, download decisions, lock waits, and fallback outcomes.
  • Add compact cli.configure telemetry with config mode, credential source category, bounded failure category, result, and duration.
  • Add missing remote.setup child phases for CLI resolve/configure, compatibility checks, monitor setup, and VS Code handoff.
  • Extend existing WebSocket reconnect aggregate telemetry with bounded attempt/backoff buckets and route normalization coverage.

Tests

  • pnpm lint
  • pnpm typecheck
  • pnpm format:check
  • pnpm test:extension
  • pnpm test:webview
  • pnpm build
Implementation notes

User-approved choices: return bounded result data from CliCredentialManager.storeToken() so cli.configure can report actual mode/source, and add bounded aggregate WebSocket reconnect bucket data to existing connection.reconnect_resolved without per-attempt events.

SSH telemetry remains unchanged per issue scope. Existing cli.download remains the only actual download event.

Generated by Coder Agents.

Closes #985

@EhabY EhabY self-assigned this Jun 8, 2026
@EhabY EhabY force-pushed the feat/985-telemetry-traces branch from a7840d5 to 1b8557b Compare June 8, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Telemetry: instrument CLI resolution and remote setup phases

1 participant