Description
Description
This ticket is about supporting React Router v7 as a full meta-framework: https://reactrouter.com/start/framework/installation
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
- Wizard for
@sentry/react-router
Sub-issues
Metadata
Metadata
Assignees
Type
Projects
Status
No status
Activity