Skip to content

docs(fastify): Fix imports in error handler snippet - #19426

Merged
chargome merged 3 commits into
js-v11-docsfrom
fastify-manual-setup
Sep 22, 2026
Merged

chargome merged 3 commits into
js-v11-docsfrom
fastify-manual-setup

Conversation

@chargome

@chargome chargome commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Rewrites the Fastify error handler page for v11. setupFastifyErrorHandler is a deprecated no-op in v11, so the page now documents only the happy path: errors are captured by fastifyIntegration, which is enabled by default, and shouldHandleError is configured on the integration.

This also removes the old snippet's import of @sentry/fastify, a package that does not exist.

Closes https://linear.app/getsentry/issue/SDK-1496/fastify-getting-started-manual-setup

The error handler page imported setupFastifyErrorHandler from @sentry/fastify, a package
that does not exist, and called fastify() without importing it. Use the @sentry/node
namespace import and import Fastify.

Fixes SDK-1496
Co-Authored-By: Claude Opus 5 <[email protected]>
@chargome chargome self-assigned this Sep 15, 2026
@vercel

vercel Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Sep 17, 2026 12:16pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Sep 17, 2026 12:16pm UTC

Request Review

@linear-code

linear-code Bot commented Sep 15, 2026

Copy link
Copy Markdown

SDK-1496

@github-actions github-actions Bot added the Priority: Needs Triage The PR description is missing valid priority information label Sep 15, 2026
The handler-level shouldHandleError option is deprecated since 10.x and is removed in
11.0.0. Document the option on fastifyIntegration, which applies to every supported
Fastify version, and flag the deprecated form.

Refs SDK-1496
setupFastifyErrorHandler is a deprecated no-op in v11, so document the happy path only:
errors are captured by the default-enabled fastifyIntegration, and shouldHandleError is
configured on the integration.

Refs SDK-1496
@andreiborza
andreiborza changed the base branch from master to js-v11-docs September 22, 2026 12:14
@andreiborza
andreiborza marked this pull request as ready for review September 22, 2026 13:17
@github-actions

Copy link
Copy Markdown
Contributor

Please update the IS YOUR CHANGE URGENT? section of the PR description:

  • Select exactly one option.
  • If you selected an urgent or other deadline, provide the date as YYYY-MM-DD.

This information helps the Docs team prioritize your review.

@chargome
chargome merged commit 2a0bc89 into js-v11-docs Sep 22, 2026
27 checks passed
@chargome
chargome deleted the fastify-manual-setup branch September 22, 2026 13:26

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — 5e89064f Deployed Sep 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

js-v11-docs Priority: Needs Triage The PR description is missing valid priority information

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants