Title: RemixJS - Cloudflare Server Adapter - Sentry Wrapper · Issue #5610 · getsentry/sentry-javascript · GitHub
Open Graph Title: RemixJS - Cloudflare Server Adapter - Sentry Wrapper · Issue #5610 · getsentry/sentry-javascript
X Title: RemixJS - Cloudflare Server Adapter - Sentry Wrapper · Issue #5610 · 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/5610
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RemixJS - Cloudflare Server Adapter - Sentry Wrapper","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 package are you using?\n\n@sentry/remix\n\n### SDK Version\n\n7.11.0\n\n### Framework Version\n\nRemix-Run: 1.6.7 & React 17.0.2\n\n### Link to Sentry event\n\n_No response_\n\n### Steps to Reproduce\n\n1. Opted to use Cloudflare workers as opposed to Remix's built in app server\r\n2. Followed [Sentry integration instructions](https://docs.sentry.io/platforms/javascript/guides/remix/)\r\n3. `Sentry.captureException(new Error(\"Error)` is only being reported to Sentry if in primary tsx component, Not in the loader / action functions. \r\n\r\n\r\nIt looks like if Express is used as the server adapter as opposed to cloudflare-workers then there exists the `wrapExpressCreateRequestHandler` to handle it but nothing exists for the cloudflare-workers.\r\n\r\nSee current `server.js` below utilizing cloudflare-workers:\r\n```\r\nimport { createEventHandler } from \"@remix-run/cloudflare-workers\";\r\nimport * as build from \"@remix-run/dev/server-build\";\r\n\r\naddEventListener(\r\n \"fetch\",\r\n createEventHandler({ build, mode: process.env.NODE_ENV })\r\n);\r\n```\r\n\r\n\r\nCurrent Sentry.init in `app/entry.server.tsx`:\r\n```\r\nSentry.init({\r\n dsn: process.env.SENTRY_DSN,\r\n tracesSampleRate: 0.2,\r\n});\r\n```\n\n### Expected Result\n\nSentry capture exceptions should be reported in the server code as well.\r\n\n\n### Actual Result\n\nNo sentry event is reported from the server, only client.","author":{"url":"https://github.com/jcpaulco","@type":"Person","name":"jcpaulco"},"datePublished":"2022-08-19T14:16:52Z","url":"https://github.com/getsentry/sentry-javascript/issues/5610"}
| 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:0a17272d-5867-b26e-ba81-09c5590b15dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3D8:169A35:7437DC:A3432F:6B044CAF |
| html-safe-nonce | 2716a46d3148aeafc3fbbf1988369b0424d876ead3908d79293109c096e574ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0Q4OjE2OUEzNTo3NDM3REM6QTM0MzJGOjZCMDQ0Q0FGIiwidmlzaXRvcl9pZCI6IjgzMDk0OTk3NTUwODQ2NjM5ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b194f3d569a57e011b8e8485659a3cfe2f1199576d8b4409ffcfaf3cd1c8fb87 |
| hovercard-subject-tag | issue:1344506311 |
| 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/5610/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d84169139abfc65205aa6532f67b013e68d7583cf33f950ec67ea689e9759049/getsentry/sentry-javascript/issues/5610 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d84169139abfc65205aa6532f67b013e68d7583cf33f950ec67ea689e9759049/getsentry/sentry-javascript/issues/5610 |
| 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 | jcpaulco |
| hostname | github.com |
| expected-hostname | github.com |
| None | 002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730 |
| 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 | 059f24c781e3a0d7df3f27a97da0e93fab06ae39 |
| 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