Title: react-router v7 SDK doesn't re-export from `@sentry/react` and is missing `withProfiler` · Issue #16459 · getsentry/sentry-javascript · GitHub
Open Graph Title: react-router v7 SDK doesn't re-export from `@sentry/react` and is missing `withProfiler` · Issue #16459 · getsentry/sentry-javascript
X Title: react-router v7 SDK doesn't re-export from `@sentry/react` and is missing `withProfiler` · Issue #16459 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/16459
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"react-router v7 SDK doesn't re-export from `@sentry/react` and is missing `withProfiler`","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/react-router\n\n### SDK Version\n\n^9.24.0\n\n### Framework Version\n\nreact 19.0.0 react-router \"7.0.0\"\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n```ts\nSentry.init({\n\tdsn: SENTRY_DSN,\n\tenvironment: getPublicEnvValue('APP_ENV') ?? 'production',\n\trelease: getPublicEnvValue('RELEASE_VERSION'),\n\ttracesSampler: ({ name, parentSampled }) => {\n\t\tif (getPublicEnvValue('APP_ENV') === 'development' && SENTRY_SPOTLIGHT) {\n\t\t\treturn 1;\n\t\t}\n\t\t// Skip trace sampling for non-production environments\n\t\tif (getPublicEnvValue('APP_ENV') !== 'production') return false;\n\n\t\tif (name.startsWith('navigation')) {\n\t\t\treturn 1;\n\t\t}\n\n\t\tif (typeof parentSampled === 'boolean') {\n\t\t\treturn parentSampled;\n\t\t}\n\n\t\treturn 0.25;\n\t},\n\tprofilesSampleRate: 1, // relative to traces sample rate\n\treplaysSessionSampleRate: 0,\n\treplaysOnErrorSampleRate: 0,\n\ttracePropagationTargets: ['localhost', /^https:\\/\\/charts\\.basedash\\.com\\//],\n\tintegrations: [\n\t\tSentry.reactRouterTracingIntegration(),\n\t\t/**\n\t\t * https://docs.sentry.io/platforms/javascript/guides/remix/configuration/integrations/extraerrordata\n\t\t */\n\t\tSentry.extraErrorDataIntegration(),\n\t\tSentry.browserTracingIntegration(),\n\t\tSentry.browserProfilingIntegration(),\n\t\tSentry.replayIntegration({\n\t\t\t// Additional SDK configuration goes in here, for example:\n\t\t\tmaskAllText: true,\n\t\t\tblockAllMedia: true,\n\t\t}),\n\t],\n});\n```\n\n### Steps to Reproduce\n\n1. Setup Sentry per documentation for react-router v7 framework mode\n2. Try to wrap app component (or any component with `Sentry.withProfiler`\n\n\nMaybe related, but the `reactComponentAnnotation` feature is not working either https://github.com/getsentry/sentry-javascript/issues/16471\n\n### Expected Result\n\nI can wrap my component(s) with `withProfiler` and receive react spans.\n\n### Actual Result\n\nI can't wrap my component with `withProfiler`.","author":{"url":"https://github.com/derekr","@type":"Person","name":"derekr"},"datePublished":"2025-06-02T20:50:59Z","url":"https://github.com/getsentry/sentry-javascript/issues/16459"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8d07f6ba-fca5-0db7-c3d0-0622527ebcaa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 93C0:BD75D:36DC67:4B48A1:6B074864 |
| html-safe-nonce | 5530ca9542cd0814253c7b7df91c34735105c9d894c100ceb4365d6913d62ad8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0MwOkJENzVEOjM2REM2Nzo0QjQ4QTE6NkIwNzQ4NjQiLCJ2aXNpdG9yX2lkIjoiNjU4NTg4NTE1MzkyMTgxMjU4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 912fdfdf93e1cae5169c8d43b095cabaccb09ff7bbf3945b27a860a72a6c61b8 |
| hovercard-subject-tag | issue:3111593768 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/16459/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e83b8ff4e9da8745cc85f626dd522bc30c284501b2020e23c32bf324931c6195/getsentry/sentry-javascript/issues/16459 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e83b8ff4e9da8745cc85f626dd522bc30c284501b2020e23c32bf324931c6195/getsentry/sentry-javascript/issues/16459 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | derekr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26f151990bcb5b67b87df8b3f96ed340f849939d44e36f348402de5e39cca989 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cd00d8452bcb4e56a60ba7c0e61a697b46513fe9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width