You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This includes full instrumentation for both client and server side.
Overview
We will publish a new package @sentry/react-router.
To not carry over too much unneeded functionality like rsbuild support, non-otel instrumentation or support for older remix versions we will not build upon @sentry/remix and rather treat this as new SDK with the possibility of re-using remix otel instrumentation.
The starting point will be instrumenting the framework using @sentry/node and @sentry/react
Discussed approach for configuration and entrypoints:
Create a Vite plugin for react router
Create a wrapper for the react router config file for having access to all config params
Create separate instrumentation files for client and server, which can be imported in the respective entry files (esm support possible)
(Possibly) create a wrapper for the new routes.ts file
we still need to check at which point this file is evaluated and if this will help us with parameterization
for future compatibility this might be a good file to have from the start on
Additional tasks (issue creation tbd)
Write a migration path from @sentry/remix to @sentry/react-router
im coming from Remix - used @sentry/remix before, but after upgrading to RRv7 there are dependencies which cant be there "react-router-dom" from some remix packages - so would be nice, if the new implementation will also work from former @sentry/remix users.
BR
Steven
Reacted by Charly Gomez, Herc, Fateh Waharp, Anthony Hagidimitriou and Alexey Lyakhov
Reacted by Charly Gomez, Fateh Waharp and Alexey Lyakhov
The issue mentioned previously seems to have been resolved, at least a solution has surfaced in the docs.
Is there a timeline at all for this SDK moving out of alpha?
We have marked the SDK as beta for now, as there will be no expected API changes anytime soon.
Please keep an eye out for remix-run/react-router#13749 if you're interested for any updates regarding instrumentation in React Router in framework mode!
In case you're running into issues or want to create a feature-request, please open a new issue.
Reacted by Andrei, Shmuli Margulies, MattyBalaam, Herc, patsaas, Kenn Ejima and yoni-noma
hi @chargome are there any plans on implementing the new instrumentation API? Asking because I dont really see any docs to implement Sentry in RR7 framework mode?
Activity
intsanerarity commentedon Nov 28, 2024
hey,
im coming from Remix - used @sentry/remix before, but after upgrading to RRv7 there are dependencies which cant be there "react-router-dom" from some remix packages - so would be nice, if the new implementation will also work from former @sentry/remix users.
BR
Steven
AbhiPrasad commentedon Nov 28, 2024
This probably needs to be a new package, and we also need to write out migration docs about how to go from
@sentry/remixto@sentry/react-router.punkpeye commentedon Dec 9, 2024
AlemTuzlak commentedon Dec 9, 2024
Anything I can do to help you guys?
131 remaining items
theolvq commentedon Jun 23, 2025
The issue mentioned previously seems to have been resolved, at least a solution has surfaced in the docs.
Is there a timeline at all for this SDK moving out of alpha?
chargome commentedon Jun 24, 2025
@theolvq we'll move the SDK to beta status this or next week
chargome commentedon Jul 1, 2025
We have marked the SDK as
betafor now, as there will be no expected API changes anytime soon.Please keep an eye out for remix-run/react-router#13749 if you're interested for any updates regarding instrumentation in React Router in framework mode!
In case you're running into issues or want to create a feature-request, please open a new issue.
dloreto commentedon Jul 14, 2025
@chargome is unclear how to integrate sentry with react-router as a framework in SPA mode with
ssr: false. server files wouldn't be executed.chargome commentedon Jul 15, 2025
Hey @dloreto, in SPA mode there will be no server in place so you'll just omit the server-side setup!
gijsroge commentedon Dec 7, 2025
hi @chargome are there any plans on implementing the new instrumentation API? Asking because I dont really see any docs to implement Sentry in RR7 framework mode?