Skip to content
This repository was archived by the owner on Oct 23, 2026. It is now read-only.

fix(telemetry): Silence CliError for process exit code 1 - #1449

Merged
BYK merged 1 commit into
mainfrom
seer/fix-cli-20g-silence-process-exit-error
Sep 4, 2026
Merged

BYK merged 1 commit into
mainfrom
seer/fix-cli-20g-silence-process-exit-error

Conversation

@sentry

@sentry sentry Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

The sentry local run and sentry monitor run commands propagate child process exit codes as CliError("Process exited with code N"). Previously, these errors were not explicitly silenced in classifySilenced() in src/lib/error-reporting.ts, leading to them being captured and sent to Sentry.

This resulted in a significant amount of telemetry noise (CLI-20G), as these errors represent expected failures of user-provided scripts rather than bugs in the CLI itself.

This change adds a new SilenceReason called "process_exit" and modifies classifySilenced() to return this reason for CliError instances whose message starts with "Process exited with code". This ensures that these expected errors are no longer sent to Sentry, reducing noise and improving the signal-to-noise ratio of our telemetry.

Fixes CLI-20G

This PR was automatically generated by Sentry. You can adjust this setting at any time.

@vercel

vercel Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
cli Ready Ready Preview Aug 21, 2026 10:41am

Request Review

@BYK
BYK merged commit dc5b79c into main Sep 4, 2026
29 checks passed
@BYK
BYK deleted the seer/fix-cli-20g-silence-process-exit-error branch September 4, 2026 15:49

This branch was successfully deployed

1 active deployment
Preview — 05ce6e8b Deployed Aug 21, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant