Skip to content
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

feat(fastify): Document shouldHandleError #13111

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

AbhiPrasad
Copy link
Member

Documents getsentry/sentry-javascript#15771, released in JS SDK 9.9.0.

@AbhiPrasad AbhiPrasad self-assigned this Mar 24, 2025
Copy link

vercel bot commented Mar 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 24, 2025 7:18pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Visit Preview Mar 24, 2025 7:18pm
develop-docs ⬜️ Ignored (Inspect) Visit Preview Mar 24, 2025 7:18pm

Copy link

codecov bot commented Mar 24, 2025

Bundle Report

Changes will increase total bundle size by 453 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.68MB 459 bytes (0.0%) ⬆️
sentry-docs-client-array-push 9.98MB -6 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
7517.js -3 bytes 1.66MB -0.0%
../instrumentation.js -3 bytes 910.93kB -0.0%
7688.js -3 bytes 886.9kB -0.0%
../app/[[...path]]/page.js.nft.json 156 bytes 382.88kB 0.04%
../app/platform-redirect/page.js.nft.json 156 bytes 382.8kB 0.04%
../app/sitemap.xml/route.js.nft.json 156 bytes 380.81kB 0.04%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 893.8kB -0.0%
static/chunks/8429-*.js -3 bytes 371.26kB -0.0%
static/QGdczgvLhpcnDOmv0FvrV/_buildManifest.js (New) 581 bytes 581 bytes 100.0% 🚀
static/QGdczgvLhpcnDOmv0FvrV/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/OuXXwFZYCdq1PgwUXEGed/_buildManifest.js (Deleted) -581 bytes 0 bytes -100.0% 🗑️
static/OuXXwFZYCdq1PgwUXEGed/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

@AbhiPrasad AbhiPrasad requested review from a team, mydea and Lms24 and removed request for a team March 25, 2025 18:19
description: "Learn about Sentry's Fastify SDK Error Handler and how to configure it."
---

The Fastify error handler integration automatically captures errors in your Fastify application and sends them to Sentry. By default, it captures all errors with status codes 5xx and above, as well as errors with status codes 2xx and below.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or is it catching 200 as well?

Suggested change
The Fastify error handler integration automatically captures errors in your Fastify application and sends them to Sentry. By default, it captures all errors with status codes 5xx and above, as well as errors with status codes 2xx and below.
The Fastify error handler integration automatically captures errors in your Fastify application and sends them to Sentry. By default, it captures all errors with status codes 5xx and above, as well as errors with status codes below 2xx.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's catching 2xx as well

@AbhiPrasad AbhiPrasad merged commit 173f730 into master Mar 26, 2025
11 checks passed
@AbhiPrasad AbhiPrasad deleted the abhi-fastify-shouldHandleError-document branch March 26, 2025 15: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.

3 participants