Title: Telemetry: instrument CLI resolution and remote setup phases · Issue #985 · coder/vscode-coder · GitHub
Open Graph Title: Telemetry: instrument CLI resolution and remote setup phases · Issue #985 · coder/vscode-coder
X Title: Telemetry: instrument CLI resolution and remote setup phases · Issue #985 · coder/vscode-coder
Description: Follow-up from the local telemetry audit of #953 / #903. Scope Main already has remote.setup, cli.download, HTTP rollups, WebSocket connection telemetry, and SSH process/network telemetry. Keep this issue focused on missing phases and pr...
Open Graph Description: Follow-up from the local telemetry audit of #953 / #903. Scope Main already has remote.setup, cli.download, HTTP rollups, WebSocket connection telemetry, and SSH process/network telemetry. Keep thi...
X Description: Follow-up from the local telemetry audit of #953 / #903. Scope Main already has remote.setup, cli.download, HTTP rollups, WebSocket connection telemetry, and SSH process/network telemetry. Keep thi...
Opengraph URL: https://github.com/coder/vscode-coder/issues/985
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Telemetry: instrument CLI resolution and remote setup phases","articleBody":"Follow-up from the local telemetry audit of coder/vscode-coder#953 / coder/vscode-coder#903.\n\n## Scope\n\nMain already has `remote.setup`, `cli.download`, HTTP rollups, WebSocket connection telemetry, and SSH process/network telemetry. Keep this issue focused on missing phases and privacy/cardinality fixes rather than adding duplicate lifecycle events.\n\nAdd or refine:\n\n* a parent `cli.resolve` trace covering cache lookup, version check, lock wait, download decision, download-disabled fallback, and fallback-to-existing-binary outcome\n* reuse existing `cli.download` for actual downloads and its existing `verify` child phase; do not create a second download event\n* one compact `cli.configure` trace for CLI credential/config writes with config mode, credential source category, result, bounded failure category, and duration\n* a few additional `remote.setup` child phases where they answer “where did setup spend time?”, especially CLI resolve/configure, compatibility check, workspace monitor setup, SSH monitor setup, and VS Code handoff\n* WebSocket telemetry cleanup: strip query strings, bucket/normalize routes, and add bounded backoff/attempt bucket data only if it does not create per-attempt noise\n\n## Avoid duplicating\n\n* `cli.download` already captures download result/duration, reason, downloaded bytes, and signature verification outcome.\n* `remote.setup` already captures setup duration/result and child phases for workspace lookup, workspace readiness, agent resolution, and SSH config write.\n* `connection.state_transitioned`, `connection.opened`, `connection.dropped`, and `connection.reconnect_resolved` already cover WebSocket lifecycle/reconnects.\n* `ssh.process.discovered/lost/recovered/replaced/disposed` and `ssh.network.sampled` already cover SSH process and network lifecycle.\n\n## Out of scope\n\n* Do not add `ssh.process.spawned`; VS Code Remote SSH owns spawning and we only discover the process.\n* Do not add a vague `ssh.connection.stable` unless a concrete stability threshold and support use case are defined.\n* Do not add per-attempt WebSocket events if existing aggregate reconnect telemetry can answer the question.\n\n## Privacy\n\nDo not log raw query strings, private key paths, raw command lines, tokens, or unnormalized user-controlled paths. Use bounded route buckets and failure categories.\n\n## Acceptance criteria\n\n* CLI cache hit, version mismatch, disabled-download fallback, lock wait, actual download, verification, and fallback outcomes are distinguishable without duplicate download events.\n* Remote setup has enough child phases to identify the slow/failing setup segment.\n* WebSocket route telemetry strips query strings and avoids high-cardinality paths.\n* SSH telemetry remains limited to existing lifecycle/network signals unless a precise new gap is identified.\n* Tests cover representative success/failure/fallback paths.\n\n---\n\nGenerated by Coder Agent from the telemetry audit of coder/vscode-coder#953. Updated after reviewing existing telemetry on main.\n","author":{"url":"https://github.com/EhabY","@type":"Person","name":"EhabY"},"datePublished":"2026-05-31T15:21:13Z","url":"https://github.com/coder/vscode-coder/issues/985"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c785035a-3aa3-6068-167c-2ac7d7011d7e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D8BC:21F6E2:4FEBF6:7053E6:6B044608 |
| html-safe-nonce | 764784c013e6c45749d724e8ddeab06ac3a9c7c6b82f96c1a020f6630a567bf0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEJDOjIxRjZFMjo0RkVCRjY6NzA1M0U2OjZCMDQ0NjA4IiwidmlzaXRvcl9pZCI6IjMxMzM3Njg3MzgzNzQxNzQyMTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0530dea8798f964c96d00c9bc416d64bfdb8048fa71428d6a3fdda0f326f5376 |
| hovercard-subject-tag | issue:4558017594 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/vscode-coder/985/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d8bf2fe178a653137c26d744427eafcf113631f1fac5d6a36c46c75c1d0961e6/coder/vscode-coder/issues/985 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d8bf2fe178a653137c26d744427eafcf113631f1fac5d6a36c46c75c1d0961e6/coder/vscode-coder/issues/985 |
| og:image:alt | Follow-up from the local telemetry audit of #953 / #903. Scope Main already has remote.setup, cli.download, HTTP rollups, WebSocket connection telemetry, and SSH process/network telemetry. Keep thi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | EhabY |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/vscode-coder git https://github.com/coder/vscode-coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 582550891 |
| octolytics-dimension-repository_nwo | coder/vscode-coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 582550891 |
| octolytics-dimension-repository_network_root_nwo | coder/vscode-coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width