Skip to content

feat(init): tag wizard.outcome on cli.command span#948

Merged
betegon merged 2 commits into
mainfrom
feat/wizard-outcome-telemetry
May 11, 2026
Merged

feat(init): tag wizard.outcome on cli.command span#948
betegon merged 2 commits into
mainfrom
feat/wizard-outcome-telemetry

Conversation

@betegon
Copy link
Copy Markdown
Member

@betegon betegon commented May 11, 2026

span.status is unknown on every sentry init run, so there was no way to distinguish completed, bailed, and failed runs in the Init Command dashboard — you just got a sea of identical spans.

Adds wizard.outcome (completed / bailed / errored) as a Sentry scope tag at the three exit paths in runWizard. On a successful completion also tags wizard.platform and wizard.features from the final step result, so the CLI span carries the same platform/feature context as the server-side metrics.

This unlocks span-level filtering in Explore and dashboards — e.g. wizard.outcome:errored for a "Failed Runs" table, wizard.outcome:completed for reach-out to successful users.

Companion change adding the same tags on the server side: getsentry/cli-init-api#136

Adds wizard.outcome (completed/bailed/errored), wizard.platform, and
wizard.features as Sentry scope tags on the root cli.command span once
the remote wizard finishes.

Previously span.status was unknown on every init run, making it
impossible to filter "failed runs" or "completed runs" in dashboards.
These tags give span-level outcome visibility without needing to
cross-reference server-side tracemetrics.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 11, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://cli.sentry.dev/_preview/pr-948/

Built to branch gh-pages at 2026-05-11 15:02 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 11, 2026

Codecov Results 📊

6856 passed | Total: 6856 | Pass Rate: 100% | Execution Time: 0ms

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

❌ Patch coverage is 55.56%. Project has 14006 uncovered lines.
✅ Project coverage is 77.03%. Comparing base (base) to head (head).

Files with missing lines (1)
File Patch % Lines
src/lib/init/wizard-runner.ts 55.56% ⚠️ 8 Missing
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    76.97%    77.03%    +0.06%
==========================================
  Files          319       319         —
  Lines        60994     60966       -28
  Branches         0         0         —
==========================================
+ Hits         46947     46960       +13
- Misses       14047     14006       -41
- Partials         0         0         —

Generated by Codecov Action

@betegon betegon marked this pull request as ready for review May 11, 2026 15:02
@betegon betegon merged commit 6551d26 into main May 11, 2026
29 checks passed
@betegon betegon deleted the feat/wizard-outcome-telemetry branch May 11, 2026 15:08
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.

1 participant