Skip to content

fix(v9/sveltekit): Align error status filtering and mechanism in handleErrorWithSentry #17174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 28, 2025

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Jul 25, 2025

backport of #17157

…ErrorWithSentry` (#17157)

Our `handleErrorWithSentry` logic was diverging a bit from the rest of
the SvelteKit SDK and more general SDK patterns. Specifically, which
errors would be ignored and when we set an error mechanism to `handled:
true|false`.

This PR now aligns two behaviours:
- Ignore all 4xx errors (previously, we only ignored 404 errors)
- Set `handled: true` if a custom error handler was defined by users and
`handled: false` otherwise.
@Lms24 Lms24 requested review from a team as code owners July 25, 2025 11:29
@Lms24 Lms24 changed the base branch from develop to v9 July 25, 2025 11:30
@Lms24 Lms24 requested review from a team, mydea and AbhiPrasad and removed request for a team July 25, 2025 11:30
@Lms24 Lms24 self-assigned this Jul 25, 2025
@Lms24 Lms24 merged commit 38771bc into v9 Jul 28, 2025
32 checks passed
@Lms24 Lms24 deleted the lms/fix-v9-sveltekit-handleErrorWithSentry-status-mechanism branch July 28, 2025 07:38
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.

2 participants