Skip to content

[JavaScript] React Router (v7) SDK #14519

Open
3 of 3 issues completed
Open
Project
3 of 3 issues completed
@chargome

Description

@chargome
Member

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

Sub-issues

3 of 3 Issues completed

Activity

intsanerarity

intsanerarity commented on Nov 28, 2024

@intsanerarity

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

moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Nov 28, 2024
moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Nov 28, 2024
AbhiPrasad

AbhiPrasad commented on Nov 28, 2024

@AbhiPrasad
Member

This probably needs to be a new package, and we also need to write out migration docs about how to go from @sentry/remix to @sentry/react-router.

punkpeye

punkpeye commented on Dec 9, 2024

@punkpeye
moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Dec 9, 2024
moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Dec 9, 2024
AlemTuzlak

AlemTuzlak commented on Dec 9, 2024

@AlemTuzlak

Anything I can do to help you guys?

141 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @willhoney7@badeleux@gijsroge@stephanie-anderson@Lms24

      Issue actions

        [JavaScript] React Router (v7) SDK · Issue #14519 · getsentry/sentry-javascript