Skip to content

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
@vercel
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)
changelog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2024 0:27am
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2024 0:27am
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2024 0:27am

@codecov
Copy link

codecov bot commented Dec 6, 2024

Bundle Report

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

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.35MB 6.4kB (0.06%) ⬆️
sentry-docs-client-array-push 9.28MB 8.07kB (0.09%) ⬆️

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.

chargome and others added 6 commits December 11, 2024 17:00
…er.mdx

Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io>
…er.mdx

Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io>
…router.mdx

Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io>
…router.mdx

Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io>
chargome and others added 4 commits December 12, 2024 12:44
…er.mdx

Co-authored-by: Andrei <168741329+andreiborza@users.noreply.github.com>
…router.mdx

Co-authored-by: Andrei <168741329+andreiborza@users.noreply.github.com>
…er.mdx

Co-authored-by: Andrei <168741329+andreiborza@users.noreply.github.com>
…router.mdx

Co-authored-by: Andrei <168741329+andreiborza@users.noreply.github.com>
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.

Copy link
Member Author

Choose a reason for hiding this comment

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

sure, I'll ping them again

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

No as the routing mechanism is different when using framework mode. If you rely on the routes module then these functions that we need for our "library mode integration" are not exposed

@chargome chargome merged commit 296b1be into master Dec 17, 2024
13 checks passed
@chargome chargome deleted the cg/rr7-framework-manual-setup branch December 17, 2024 15:11
@github-actions github-actions bot locked and limited conversation to collaborators Jan 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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