Skip to content

fix(error-reporting): Silence SeerError as feature_disabled - #1505

Closed
sentry[bot] wants to merge 2 commits into
mainfrom
seer/fix/error-reporting-silence-seer-error
Closed

fix(error-reporting): Silence SeerError as feature_disabled#1505
sentry[bot] wants to merge 2 commits into
mainfrom
seer/fix/error-reporting-silence-seer-error

Conversation

@sentry

@sentry sentry Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

This PR addresses issue CLI-1WP where SeerError: Seer is not enabled for this organization. was being captured as an actionable Sentry issue, despite being an expected feature-gate condition.

The root cause was that classifySilenced() in packages/cli/src/lib/error-reporting.ts did not recognize SeerError as a silenceable error. This led to these errors being reported to Sentry as if they were unexpected CLI bugs.

This fix re-implements the solution from a previous unmerged PR (#1308):

  1. Adds 'feature_disabled' to the SilenceReason union type.
  2. Modifies classifySilenced() to return 'feature_disabled' when an error instanceof SeerError.

This ensures that SeerError instances are correctly silenced and recorded as cli.error.silenced metrics, rather than being captured as Sentry issues.

Unit tests in test/lib/error-reporting.test.ts have been updated to reflect this new silencing behavior.

Fixes CLI-1WP

@sentry <feedback>: Autofix iterates on these changes
@sentry stop iterating: Autofix stops iterating on this run

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

@vercel

vercel Bot commented Aug 28, 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 28, 2026 10:53pm

Request Review

@sentry
sentry Bot marked this pull request as ready for review August 28, 2026 23:00
@sentry
sentry Bot requested a review from BYK August 28, 2026 23:00
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Aug 28, 2026
@BYK

BYK commented Aug 29, 2026

Copy link
Copy Markdown
Member

Closing with the same reason from the other PR: "This is intentional to track demand."

@BYK BYK closed this Aug 29, 2026
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.

1 participant