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(node): Ensure incoming traces are propagated without HttpInstrumentation #15732

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

mydea
Copy link
Member

@mydea mydea commented Mar 19, 2025

Part of #15730

Noticed that this is not really happening otherwise, so if we are not adding the HttpInstrumentation we now make sure to extract incoming traces ourselves! This will unlock us not adding that instrumentation when tracing is disabled.

Also includes #15731 as a side effect.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…ntation
Copy link
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.15 KB - -
@sentry/browser - with treeshaking flags 22.94 KB - -
@sentry/browser (incl. Tracing) 36.21 KB - -
@sentry/browser (incl. Tracing, Replay) 73.39 KB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 66.81 KB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 78.01 KB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 90.57 KB - -
@sentry/browser (incl. Feedback) 40.3 KB - -
@sentry/browser (incl. sendFeedback) 27.79 KB - -
@sentry/browser (incl. FeedbackAsync) 32.58 KB - -
@sentry/react 24.97 KB - -
@sentry/react (incl. Tracing) 38.1 KB - -
@sentry/vue 27.4 KB - -
@sentry/vue (incl. Tracing) 37.9 KB - -
@sentry/svelte 23.18 KB - -
CDN Bundle 24.36 KB - -
CDN Bundle (incl. Tracing) 36.26 KB - -
CDN Bundle (incl. Tracing, Replay) 71.27 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 76.45 KB - -
CDN Bundle - uncompressed 71.19 KB - -
CDN Bundle (incl. Tracing) - uncompressed 107.57 KB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 218.83 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 231.39 KB - -
@sentry/nextjs (client) 39.38 KB - -
@sentry/sveltekit (client) 36.63 KB - -
@sentry/node 142.63 KB +0.02% +22 B 🔺
@sentry/node - without tracing 96.02 KB -0.02% -13 B 🔽
@sentry/aws-serverless 120.39 KB -0.02% -23 B 🔽

View base workflow run

...options,
// If spans are not instrumented, it means the HttpInstrumentation has not been added
// In that case, we want to handle incoming trace extraction ourselves
extractIncomingTraceFromHeader: !instrumentSpans,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't think of that 🤯

@mydea mydea merged commit fa8e043 into develop Mar 19, 2025
108 checks passed
@mydea mydea deleted the fn/ensure-http-incoming-trace branch March 19, 2025 12:51
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

2 participants