Sentry react-router integration#36
Closed
kentcdodds wants to merge 6 commits into
Closed
Conversation
Co-authored-by: me <me@kentcdodds.com>
Co-authored-by: me <me@kentcdodds.com>
|
Cursor Agent can help with this pull request. Just |
kentcdodds
commented
Jan 30, 2026
| }, | ||
| integrations: [ | ||
| browserTracingIntegration({ | ||
| reactRouterV6BrowserTracingIntegration({ |
There was a problem hiding this comment.
Walkthrough
Homepage reload after v7 tracing switch.
Summary
- Switched client tracing to the React Router v7 integration for Sentry browser tracing.【F:app/utils/monitoring.client.tsx†L1-L53】
Testing
- ✅ Manual reload/scroll at
http://localhost:3000to verify UI renders after the .tsx tracing change (see video).
Co-authored-by: me <me@kentcdodds.com>
|
Bugbot Autofix resolved 2 of the 2 bugs found in the latest run.
|
|
Bugbot Autofix resolved 2 of the 2 bugs found in the latest run.
|
| }, | ||
| }) | ||
| } | ||
| }, [error]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





Migrates Sentry integration from
@sentry/remixto@sentry/react-routerand upgrades@sentry/vite-plugin.This change updates:
@sentry/react-router.withSentrywrapper.@sentry/reactand@sentry/react-router.@sentry/vite-pluginto the latest version.Test Plan
npm run devand manually verify UI functionality (e.g., homepage reload and scroll athttp://localhost:3000).npm run buildto ensure the Vite build pipeline functions correctly with the upgraded plugin.Checklist
Screenshots
Homepage reload and scroll after Sentry migration.
Note
Medium Risk
Touches core monitoring/error-capture paths and upgrades Sentry to v10, which could change what gets reported or sampled in production. No business logic changes, but observability regressions are possible if the new integrations are misconfigured.
Overview
Migrates the app’s Sentry integration away from
@sentry/remixto the newer SDKs (@sentry/nodeon the server and@sentry/reacton the client), including a major dependency upgrade and associated lockfile churn.Server-side error reporting is reworked to call
Sentry.captureExceptionwith explicit request context (url/method/headers) and areact-routermechanism, and server initialization drops Remix auto-instrumentation in favor of explicithttp/prismaintegrations.Client-side monitoring switches tracing to
reactRouterV7BrowserTracingIntegration, and the UI error boundary now captures unexpected (non-route) errors viaSentry.captureException; the RemixwithSentryroot wrapper is removed.Written by Cursor Bugbot for commit 237e5ab. This will update automatically on new commits. Configure here.