-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix Hydrogen 404s: Update link to correct page #14773
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| span.setStatus?.("error"); | ||
| Sentry.captureException(error); | ||
| } finally { | ||
| span.finish?.(); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potential bug: Documentation examples use incorrect Sentry SDK v8 APIs. span.setStatus is passed a string instead of an object, and deprecated span.finish() is used, breaking tracing functionality for users.
-
Description: The documentation examples for span metrics use incorrect Sentry SDK v8 APIs. Specifically,
span.setStatusis called with a string like"error"instead of the required object format, e.g.,{ code: 2 }. Additionally, the examples callspan.finish?.(), which is a deprecated method from SDK v7; the correct method isspan.end(). Furthermore, manual span finishing is unnecessary asSentry.startSpan()automatically ends the span when its callback completes. This will cause users who copy these examples to have broken or non-functional tracing, as statuses will not be set correctly. -
Suggested fix: Replace
span.setStatus?.("error")withspan.setStatus({ code: 2 })andspan.setStatus?.("cancelled")with the appropriate status object. Remove all calls to the deprecated and unnecessaryspan.finish?.()method, asSentry.startSpan()automatically manages the span's lifecycle. Remove optional chaining fromsetStatuscalls.
severity: 0.72, confidence: 0.95
Did we get this right? 👍 / 👎 to inform future reviews.
Bundle ReportChanges will increase total bundle size by 375 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: sentry-docs-client-array-pushAssets Changed:
view changes for bundle: sentry-docs-server-cjsAssets Changed:
|
a5953ed to
0eceb74
Compare
- Update Cloudflare index to point hydrogen link to correct page - Add redirect from old hydrogen URL to current hydrogen-react-router page This resolves 404 alerts for /platforms/javascript/guides/cloudflare/frameworks/hydrogen/ 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
0eceb74 to
aafcdcd
Compare
Summary
frameworks/hydrogen/toframeworks/hydrogen-react-router/Context
The Cloudflare index page was linking to
frameworks/hydrogen/which doesn't exist, causing users to hit 404 errors. The content was moved to separate pages for different Hydrogen versions:hydrogen-react-router/for newer Hydrogen versions (2025.5.0+)hydrogen-remix/for legacy versionsThis PR points to the current version (
hydrogen-react-router/) to resolve the 404 issue.Test plan
frameworks/hydrogen-react-router//platforms/javascript/guides/cloudflare/frameworks/hydrogen/🤖 Generated with Claude Code