Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/react-router
SDK Version
^9.24.0
Framework Version
react 19.0.0 react-router "7.0.0"
Link to Sentry event
No response
Reproduction Example/SDK Setup
Sentry.init({dsn: SENTRY_DSN,environment: getPublicEnvValue('APP_ENV')??'production',release: getPublicEnvValue('RELEASE_VERSION'),tracesSampler: ({ name, parentSampled })=>{if(getPublicEnvValue('APP_ENV')==='development'&&SENTRY_SPOTLIGHT){return1;}// Skip trace sampling for non-production environmentsif(getPublicEnvValue('APP_ENV')!=='production')returnfalse;if(name.startsWith('navigation')){return1;}if(typeofparentSampled==='boolean'){returnparentSampled;}return0.25;},profilesSampleRate: 1,// relative to traces sample ratereplaysSessionSampleRate: 0,replaysOnErrorSampleRate: 0,tracePropagationTargets: ['localhost',/^https:\/\/charts\.basedash\.com\//],integrations: [Sentry.reactRouterTracingIntegration(),/** * https://docs.sentry.io/platforms/javascript/guides/remix/configuration/integrations/extraerrordata */Sentry.extraErrorDataIntegration(),Sentry.browserTracingIntegration(),Sentry.browserProfilingIntegration(),Sentry.replayIntegration({// Additional SDK configuration goes in here, for example:maskAllText: true,blockAllMedia: true,}),],});Steps to Reproduce
- Setup Sentry per documentation for react-router v7 framework mode
- Try to wrap app component (or any component with
Sentry.withProfiler
Maybe related, but the reactComponentAnnotation feature is not working either #16471
Expected Result
I can wrap my component(s) with withProfiler and receive react spans.
Actual Result
I can't wrap my component with withProfiler.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/react-router
SDK Version
^9.24.0
Framework Version
react 19.0.0 react-router "7.0.0"
Link to Sentry event
No response
Reproduction Example/SDK Setup
Steps to Reproduce
Sentry.withProfilerMaybe related, but the
reactComponentAnnotationfeature is not working either #16471Expected Result
I can wrap my component(s) with
withProfilerand receive react spans.Actual Result
I can't wrap my component with
withProfiler.