Skip to content

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

Open
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-cli-20g-silence-process-exit-error
Open

fix(telemetry): Silence CliError for process exit code 1#1449
sentry[bot] wants to merge 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants