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

docs(js/react-router): Add setup guide for react router (framework) #12068

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

chargome
Copy link
Member

@chargome chargome commented Dec 6, 2024

This PR adds react-router (v7 framework mode) as a new guide within the javascript platform.

Since we do not yet provide a dedicated SDK, these docs just cover a very minimal setup using @sentry-react and @sentry/node.

closes getsentry/sentry-javascript#14578

@chargome chargome self-assigned this Dec 6, 2024
Copy link

vercel bot commented Dec 6, 2024

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 Dec 12, 2024 0:34am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Visit Preview Dec 12, 2024 0:34am
develop-docs ⬜️ Ignored (Inspect) Visit Preview Dec 12, 2024 0:34am

Copy link

codecov bot commented Dec 6, 2024

Bundle Report

Changes will increase total bundle size by 7.51kB (0.04%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.35MB 3.79kB (0.04%) ⬆️
sentry-docs-client-array-push 9.27MB 3.72kB (0.04%) ⬆️

Copy link
Contributor

@coolguyzone coolguyzone left a comment

Choose a reason for hiding this comment

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

Thanks for this big update @chargome! 🏄‍♂️ Looks good from a docs perspective, this is a pretty technical one so we should probably have an engineer review it as well.

@@ -273,6 +273,8 @@ import VueSVGLarge from 'platformicons/svg_80x80/vue.svg';
import WasmSVGLarge from 'platformicons/svg_80x80/wasm.svg';
import WindowsSVGLarge from 'platformicons/svg_80x80/windows.svg';
import XamarinSVGLarge from 'platformicons/svg_80x80/xamarin.svg';
// TODO(cg): move to platformicons once available
import ReactRouterSVGLarge from 'public/icon/rr.svg';
Copy link
Member

Choose a reason for hiding this comment

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

could we just update platformicons first before merging in this PR? I'd rather avoid this temporary code, and I think these docs can wait the extra 2-3 days.

Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [
Sentry.browserTracingIntegration(),
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this use the react router integration?

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.

[RR7]: Add a guide for basic instrumentation
4 participants