-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uncaughtException: parentSpan.transaction.getDynamicSamplingContext is not a function after upgrading to latest version #7073
Comments
Hi @jcasner, thanks for reporting! Usually, such an errors occur if you have misaligned @sentry/ package versions. Please check if all your |
@Lms24 thanks for the quick response - we found this by merging the dependabot PR to upgrade the main package, so the 2 (@sentry/tracing and @sentry/node) were out of sync. We'll test this out and report back if we need to reopen this. |
Can you please support an edge use-case in context of micro-frontends where the current transaction might be created by a different version of sentry used by a child application. For us this is is causing issues reporting events from one subsystem while a transaction form another subsystem is is active. The effects can be as small as button click not working to as sever as broken screens due to startup sequence being interrupted. It looks like this started after we updated the main shell to sentry >= 7.13.0 which introduced this 347fbe4#diff-e1c283d759a823b7185017fd2b9f74415c415fac8865d9808c04826ddeda961fR232-R235 |
Hi @edzis, we can do this but given that you already took a look at this, would you be interested in opening a PR with the check yourself? Happy to review! Otherwise, I'll backlog this and try to get to it in the coming weeks. |
Looking at the code it seems this was fixed via #10094 @Lms24 @Angelodaniel can you please verify that the latest version now supports interacting with transactions from sub-applications using older versions of Sentry, like 7.12.0? |
Hey @edzis so if your only concern was that Given that using multiple versions of a Sentry SDK on the same site is not something we support, I cannot guarantee that there aren't other problems similar to the one you reported. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/node
SDK Version
7.36.0
Framework Version
Node v16.15.1
Link to Sentry event
https://sentry.io/organizations/trayt/issues/3920849890/?query=is%3Aunresolved&referrer=issue-stream
SDK Setup
Steps to Reproduce
Expected Result
Server starts successfully
Actual Result
Server halts soon after starting. Interestingly, Sentry still captures the exception, so it is initializing.
The text was updated successfully, but these errors were encountered: