Repository navigation
docs(cloudflare): Document withSentry from @sentry/nextjs/cloudflare - #19874
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Add the custom Worker setup with withSentry from @sentry/nextjs/cloudflare (SDK 11.6.0), what the server and edge config files still do in the Worker, and the order the SDK uses to pick the release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4296d4e to
1e42ebb
Compare
|
The plan checks that the Next.js on Cloudflare page still loads. It checks that client errors on that page stay rare. An issue escalates when that page stops loading or new client errors appear. Monitoring in Services: Mention PlanWhat changedRequests to This change is live after RiskA broken MDX file fails the static build and blocks the production deploy. After a successful deploy, the new code tabs can throw in the browser on this page. Users who copy a wrong Worker sample can misconfigure Sentry on their Workers. That customer failure is not visible in this site's telemetry. Reach is this page and its markdown export. Sibling Cloudflare pages share the catch-all renderer. They do not share this file. Intended effectThe new Worker wrap copy is not a Sentry field. Confirm the page still hydrates instead.
Client traces sample at 30% for users. Regression watchThis diff can break CodeTabs or hydration on this page. It can drop sibling Cloudflare page loads if static render regresses. Site-wide fetch failures from Algolia and kapa are known noise. Do not treat those as this change.
If error events rise on this path, inspect the stack for Not observableWhether the new Get Slack DMs about this change: cursor.com/automations/rollouts |
coolguyzone
left a comment
There was a problem hiding this comment.
Looks good, thanks for updating!
|
Verified in
|
…te plugin (#20094) <!-- Keep the urgency section so automation can prioritize this PR. You may delete other sections you don't need. --> ## DESCRIBE YOUR PR Since SDK 11.6.0, the Cloudflare Vite plugin wraps the Worker entry of a vinext build with `withSentry` from `@sentry/nextjs/cloudflare` when `@sentry/nextjs` is installed (getsentry/sentry-javascript#25000). It works out of the box, so this adds a short "Wrap the Worker Entry With vinext" section to the Next.js on Cloudflare page that points to the existing Vite plugin page, next to the OpenNext custom Worker setup from #19874. ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. Select exactly one option. For deadlines, replace `YYYY-MM-DD` with the due date. You can update this information later by editing the PR description. - [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD - [ ] Other deadline: YYYY-MM-DD - [x] No deadline: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've supplied a deadline. Thanks in advance for your help! ## PRE-MERGE CHECKLIST _Make sure you've checked the following before merging your changes:_ - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/) <!-- junior-request-attribution:start --> via **Jan Peer Stöcklmair**. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0CA6TD3QRK%3A1792927041.646969 --> -- [View Junior Session](https://junior-prod.sentry.dev/conversations/slack%3AC0CA6TD3QRK%3A1792927041.646969) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0CA6TD3QRK%3A1792927041.646969/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Jan VamPeer Stöcklmair <jan.peer@sentry.io>
DESCRIBE YOUR PR
This documents
withSentryfrom@sentry/nextjs/cloudflare(getsentry/sentry-javascript#24998, SDK 11.6.0) on the Next.js on Cloudflare page. The page now shows the custom Worker that wraps the OpenNext entry, whatsentry.server.config.tsandsentry.edge.config.tsstill do in the Worker, and the order the SDK uses to pick the release.IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
Select exactly one option. For deadlines, replace
YYYY-MM-DDwith the due date. You can update this information later by editing the PR description.SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes:
LEGAL BOILERPLATE
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
EXTRA RESOURCES