Title: No automatic transactions when instrumenting Custom Remix Server · Issue #9963 · getsentry/sentry-javascript · GitHub
Open Graph Title: No automatic transactions when instrumenting Custom Remix Server · Issue #9963 · getsentry/sentry-javascript
X Title: No automatic transactions when instrumenting Custom Remix Server · Issue #9963 · 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/9963
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No automatic transactions when instrumenting Custom Remix Server","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\nlatest\r\n\r\n### Framework Version\r\n\r\nRemix v2\r\n\r\n### Link to Sentry event\r\n\r\nn/a\r\n\r\n### SDK Setup\r\n\r\nn/a\r\n\r\n### Steps to Reproduce\r\n\r\n1. create a Remix application with a custom express server\r\n2. instrument as described in manual instrumentation\r\n3. load the application from the browser\r\n4. no http.server transactions are produced\r\n\r\n### Expected Result\r\n\r\nloading the index root should produce an http.server transaction\r\n\r\n### Actual Result\r\n\r\nAfter stepping through the code it looks like we are wrapping the remix server and then not wrapping the request handler as `isRequestHandlerWrapped` is evaluating to true despite no transactions being produced automatically from the back-end.\r\n\r\n (Breakpoint was set at this location here: https://github.com/getsentry/sentry-javascript/blob/b6a7cef8a65adaeee07dcb70ebefbe79cb7f5d82/packages/remix/src/utils/instrumentServer.ts#L528)\r\n\r\nThe workaround was to import Sentry in entry.server.ts from @sentry/node and call Sentry.init() as usual","author":{"url":"https://github.com/souredoutlook","@type":"Person","name":"souredoutlook"},"datePublished":"2023-12-21T18:41:01Z","url":"https://github.com/getsentry/sentry-javascript/issues/9963"}
| 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:52f4de28-04f4-353d-e854-93aa0efef867 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBFE:3F539E:A011F:DBFC4:6B04630A |
| html-safe-nonce | cc92b9eb59e873c28966f8d014c5836a7a0b1baee851396a4302a10b5f0edad1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkZFOjNGNTM5RTpBMDExRjpEQkZDNDo2QjA0NjMwQSIsInZpc2l0b3JfaWQiOiIxMzQxNzc1MTAxMDU3ODUyMTcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 182004e878e732ed14822877df15eb2c172243916f18c6653b167c6994e54e50 |
| hovercard-subject-tag | issue:2052904927 |
| 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/9963/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb5aa468784e7a593985189934c313834af0ee3193e4878628b0aa19bc3c87f1/getsentry/sentry-javascript/issues/9963 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb5aa468784e7a593985189934c313834af0ee3193e4878628b0aa19bc3c87f1/getsentry/sentry-javascript/issues/9963 |
| 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 | souredoutlook |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6 |
| 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 | 03e114520787ad27289207f153520ef97461127c |
| 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