Skip to content

feat(init): track completion-screen actions in run telemetry - #1534

Merged
betegon merged 1 commit into
mainfrom
feat/init-completion-telemetry
Sep 4, 2026
Merged

feat(init): track completion-screen actions in run telemetry#1534
betegon merged 1 commit into
mainfrom
feat/init-completion-telemetry

Conversation

@betegon

@betegon betegon commented Sep 4, 2026

Copy link
Copy Markdown
Member

Summary

On the init completion screen you can open Sentry (issues / first event) or install the Sentry agent plugin. Neither click emitted any telemetry, so we couldn't tell how many people actually take either action — the buttons just called openUrl / queued a shell command with nothing landing in traces.

This adds tags on the run's cli.command transaction when the user interacts with the completion screen.

Changes

New track action on CompletionActions, bound in InkUI (main bundle) so the pre-bundled Ink sidecar never has to import the Sentry SDK — same pattern already used for openUrl. The click handlers in ink-app.tsx call it, and the tags land on the active cli.command transaction alongside the rest of the wizard.* tags.

Tags:

  • wizard.completion.opened_sentry — opened the Issues feed / first event (menu item or the o shortcut)
  • wizard.completion.agent_plugin_clicked — chose to install the agent plugin (sticky: un-toggling still counts the click)
  • wizard.completion.agent_plugin_installed — the installer actually ran on exit

clicked vs installed is intentional so we can see the funnel (chose to install vs. actually ran).

Not segmenting by framework here — just raw counts.

Test Plan

  • tsc --noEmit clean
  • biome check clean on changed files
  • vitest run on the completion-screen snapshot suite — 40/40 pass

Example query once this ships (project cli):
transaction:cli.command wizard.completion.agent_plugin_clicked:true

The completion screen lets users open Sentry (issues / first event) or
install the Sentry agent plugin, but neither click emitted any telemetry,
so we had no idea how many people take either action.

Tag the run's `cli.command` transaction on interaction:
- `wizard.completion.opened_sentry` — opened issues/first event
- `wizard.completion.agent_plugin_clicked` — chose to install the plugin
- `wizard.completion.agent_plugin_installed` — installer actually ran on exit

Tags are bound in InkUI (main bundle) via a new `track` action so the Ink
sidecar never imports the Sentry SDK, matching the existing `openUrl` pattern.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Sep 4, 2026 3:37pm UTC

Request Review

@betegon
betegon marked this pull request as ready for review September 4, 2026 15:44
@github-actions github-actions Bot added the risk: low PR risk score: low label Sep 4, 2026
@betegon
betegon merged commit 66a5275 into main Sep 4, 2026
33 checks passed
@betegon
betegon deleted the feat/init-completion-telemetry branch September 4, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant