Title: uncaughtException: parentSpan.transaction.getDynamicSamplingContext is not a function after upgrading to latest version · Issue #7073 · getsentry/sentry-javascript · GitHub
Open Graph Title: uncaughtException: parentSpan.transaction.getDynamicSamplingContext is not a function after upgrading to latest version · Issue #7073 · getsentry/sentry-javascript
X Title: uncaughtException: parentSpan.transaction.getDynamicSamplingContext is not a function after upgrading to latest version · Issue #7073 · 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/7073
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"uncaughtException: parentSpan.transaction.getDynamicSamplingContext is not a function after upgrading to latest version","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/node\n\n### SDK Version\n\n7.36.0\n\n### Framework Version\n\nNode v16.15.1\n\n### Link to Sentry event\n\nhttps://sentry.io/organizations/trayt/issues/3920849890/?query=is%3Aunresolved&referrer=issue-stream\n\n### SDK Setup\n\n```javascript\r\nSentry.init({\r\n dsn: config.sentry.dsn,\r\n environment: config.sentry.environment,\r\n enabled: config.isRunningOnServer,\r\n integrations: [\r\n // enable HTTP calls tracing\r\n new Sentry.Integrations.Http({ tracing: true }),\r\n // enable Express.js middleware tracing\r\n new Tracing.Integrations.Express({\r\n // to trace all requests to the default router\r\n app,\r\n }),\r\n ],\r\n release: VERSION,\r\n tracesSampleRate: config.sentry.tracesSampleRate,\r\n})\r\n```\n\n### Steps to Reproduce\n\n1. Upgrade from Sentry 7.11.1\r\n2. Start server\r\n3. See server crash\n\n### Expected Result\n\nServer starts successfully\n\n### Actual Result\n\nServer halts soon after starting. Interestingly, Sentry still captures the exception, so it is initializing. \r\n\r\n```\r\nuncaughtException: parentSpan.transaction.getDynamicSamplingContext is not a function\r\nTypeError: parentSpan.transaction.getDynamicSamplingContext is not a function\r\n at Object.wrappedMethod [as request] (/opt/trayt/node_modules/@sentry/node/cjs/integrations/http.js:167:69)\r\n at makeRequest (/opt/trayt/node_modules/dd-trace/packages/dd-trace/src/exporters/common/request.js:127:24)\r\n at request (/opt/trayt/node_modules/dd-trace/packages/dd-trace/src/exporters/common/request.js:150:3)\r\n```","author":{"url":"https://github.com/jcasner","@type":"Person","name":"jcasner"},"datePublished":"2023-02-07T00:53:10Z","url":"https://github.com/getsentry/sentry-javascript/issues/7073"}
| 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:3e9f98ed-f40f-4352-7872-7b6201908315 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E48:E4EF6:B2ABA9:F4D71A:6B0453C8 |
| html-safe-nonce | 161f5d4a668f89d0a863ea9fa0ac1bfabfd6f028c9862cd16cdf59383d9db9b4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTQ4OkU0RUY2OkIyQUJBOTpGNEQ3MUE6NkIwNDUzQzgiLCJ2aXNpdG9yX2lkIjoiMjAyOTk3NTIwNDI5NzcyNDg3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 295d23152f3b8644c5d1f588eecb65d72f3eaf090bd8c20b0d70747b59b58ec2 |
| hovercard-subject-tag | issue:1573510162 |
| 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/7073/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e8e867cde4177a078db0ed3bf5b2f40b80baf0a91e1f195c51f9127550cd82b5/getsentry/sentry-javascript/issues/7073 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e8e867cde4177a078db0ed3bf5b2f40b80baf0a91e1f195c51f9127550cd82b5/getsentry/sentry-javascript/issues/7073 |
| 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 | jcasner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| 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 | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| 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