Skip to content
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(v8/core): Use consistent continueTrace implementation in core #14819

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Dec 20, 2024

V8 backport of #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
@s1gr1d s1gr1d requested review from mydea and Lms24 December 20, 2024 13:44
Copy link
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.29 KB - -
@sentry/browser - with treeshaking flags 21.96 KB - -
@sentry/browser (incl. Tracing) 35.81 KB - -
@sentry/browser (incl. Tracing, Replay) 73.06 KB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 63.45 KB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 77.37 KB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 89.85 KB - -
@sentry/browser (incl. Feedback) 40.04 KB - -
@sentry/browser (incl. sendFeedback) 27.89 KB - -
@sentry/browser (incl. FeedbackAsync) 32.68 KB - -
@sentry/react 25.96 KB - -
@sentry/react (incl. Tracing) 38.64 KB - -
@sentry/vue 27.52 KB - -
@sentry/vue (incl. Tracing) 37.67 KB - -
@sentry/svelte 23.45 KB - -
CDN Bundle 24.49 KB +0.09% +22 B 🔺
CDN Bundle (incl. Tracing) 37.53 KB +0.05% +16 B 🔺
CDN Bundle (incl. Tracing, Replay) 72.72 KB +0.03% +15 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 78.12 KB +0.02% +15 B 🔺
CDN Bundle - uncompressed 71.93 KB +0.12% +81 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 111.31 KB +0.08% +81 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 225.38 KB +0.04% +81 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 238.6 KB +0.04% +81 B 🔺
@sentry/nextjs (client) 38.9 KB - -
@sentry/sveltekit (client) 36.32 KB - -
@sentry/node 162.73 KB +0.03% +35 B 🔺
@sentry/node - without tracing 98.89 KB +0.02% +20 B 🔺
@sentry/aws-serverless 126.55 KB +0.03% +26 B 🔺

View base workflow run

@xiaoxiangmoe xiaoxiangmoe mentioned this pull request Dec 20, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants