Title: @sentry/remix fails to propagate trace headers on error boundaries · Issue #9737 · getsentry/sentry-javascript · GitHub
Open Graph Title: @sentry/remix fails to propagate trace headers on error boundaries · Issue #9737 · getsentry/sentry-javascript
X Title: @sentry/remix fails to propagate trace headers on error boundaries · Issue #9737 · 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/9737
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@sentry/remix fails to propagate trace headers on error boundaries","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSentry Saas (sentry.io)\r\n\r\n### Which SDK are you using?\r\n\r\n@sentry/remix\r\n\r\n### SDK Version\r\n\r\n7.83.0\r\n\r\n### Framework Version\r\n\r\n_No response_\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n\r\n_No response_\r\n\r\n### Steps to Reproduce\r\n\r\nFollow the setup guide, trigger an SSR error that would expose ErrorBoundary.\r\n\r\n### Expected Result\r\n\r\nThe trace ID generated on the SSR request (which has the error + transaction) should be propagated to the client-side transaction.\r\n\r\n### Actual Result\r\n\r\nTwo separate root traces are generated, as the SSR trace ID is not propagated.\r\n\r\n\r\n### Cramer's Input That Doesnt Fit In This Template Monstrosity\r\n\r\nIn our instructions we have you wrapp App in `withSentry`. We do this to then inject into the loader. That works for successful page loads, but leaves you in a spot missing context in ErrorBoundary, which doesn't have access to loaders.\r\n\r\nThere are a number of issues with ErrorBoundary, so this might not solve it, but the general pattern I've found successful in express apps is to use AppLoaderContext defined within express itself. This ensures that all context is available, and I often reference it in the loader. It's possible theres a way (or we can get Remix to expose a way) to always guarantee broader context is available, as is already the case in loaders. That same context I believe is also available in the new meta functions, meaning we could probably avoid using the withSentry+loader+manual meta tags in general.","author":{"url":"https://github.com/dcramer","@type":"Person","name":"dcramer"},"datePublished":"2023-12-04T19:58:48Z","url":"https://github.com/getsentry/sentry-javascript/issues/9737"}
| 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:ce36877f-40d9-c9fc-216c-d0f564e73820 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC0A:18D8CC:1DA7E4F:267A038:6B040368 |
| html-safe-nonce | 67de296d825e60eb2b535d39829b333016d644d7c339f56376b07737710e40ed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzBBOjE4RDhDQzoxREE3RTRGOjI2N0EwMzg6NkIwNDAzNjgiLCJ2aXNpdG9yX2lkIjoiNjQ3NzIyNTI3MzA2MTU0MDcxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a548e2aa1797aa34ee040be97c916f1e799a21b0a88bc39b86a44713d228b229 |
| hovercard-subject-tag | issue:2024620854 |
| 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/9737/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cb03b0eec3ab14b8270439f3ef909437989d26e71c53f309f80c09f14e4eb2a4/getsentry/sentry-javascript/issues/9737 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cb03b0eec3ab14b8270439f3ef909437989d26e71c53f309f80c09f14e4eb2a4/getsentry/sentry-javascript/issues/9737 |
| 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 | dcramer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| 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