-
-
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
fix(core): Use consistent continueTrace
implementation in core
#14813
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
size-limit report 📦
|
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Hmm, so with this change next.js tests fail 🤔 This test: Fails, because now the Adding some logs, I see:
Which shows:
This "seems" correct, but... |
Right, so I guess the desired behavior is that if there is a My first instinct was that we can probably remove the continueTrace call from the server action instrumentation, however some nextjs versions have problems with http instrumentation so we would probably end up with some of the server action spans being detached. Maybe conditionally calling |
I had the same issue in the solidstart sdk and we ended up just dropping But yea, it didn't come with a baggage of having to support older versions. |
Ahh, that makes sense. I will fix this then, I have an idea (let's see if that works). |
b3ce32e
to
0b5edbd
Compare
…14813) We have a different implementation of `continueTrace` for OTEL/Node. Until now we relied on actually using the import from `@sentry/node` vs `@sentry/core` to ensure this. However, this is a footgun, and actually lead to a problem in NextJS because we used the core variant there. Also, it is simply not isomorphic. So to fix this, this PR puts `continueTrace` on the ACS so we can consistently use the core variant in all environments. Fixes #14787
…14813) We have a different implementation of `continueTrace` for OTEL/Node. Until now we relied on actually using the import from `@sentry/node` vs `@sentry/core` to ensure this. However, this is a footgun, and actually lead to a problem in NextJS because we used the core variant there. Also, it is simply not isomorphic. So to fix this, this PR puts `continueTrace` on the ACS so we can consistently use the core variant in all environments. Fixes #14787
We have a different implementation of
continueTrace
for OTEL/Node. Until now we relied on actually using the import from@sentry/node
vs@sentry/core
to ensure this. However, this is a footgun, and actually lead to a problem in NextJS because we used the core variant there. Also, it is simply not isomorphic.So to fix this, this PR puts
continueTrace
on the ACS so we can consistently use the core variant in all environments.Fixes #14787