Skip to content

feat(core): Streamline tracing channel bindings - #23218

Merged
mydea merged 1 commit into
developfrom
fn/tracing-channels-binding
Aug 10, 2026
Merged

feat(core): Streamline tracing channel bindings#23218
mydea merged 1 commit into
developfrom
fn/tracing-channels-binding

Conversation

@mydea

@mydea mydea commented Aug 10, 2026

Copy link
Copy Markdown
Member

This was more complicated than necessary, turns out - we can just use withActiveSpan here instead.

@mydea mydea self-assigned this Aug 10, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f783616. Configure here.

return withActiveSpan(span, () => {
return asyncLocalStorage.getStore();
});
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing tests for streamlined binding

Medium Severity

This feat PR moves ignored-span handling into getStoreWithActiveSpan but deletes the unit tests that covered that behavior, and adds no integration or E2E coverage for the new withActiveSpan-based binding path. That leaves ignoreSpans parenting over tracing channels untested and risks silent regressions.

Additional Locations (2)
Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit f783616. Configure here.

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.35 kB - -
@sentry/browser - with treeshaking flags 28.52 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.85 kB - -
@sentry/browser (incl. Tracing) 48.61 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.62 kB - -
@sentry/browser (incl. Tracing, Profiling) 53.46 kB - -
@sentry/browser (incl. Tracing, Replay) 88.04 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.45 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 92.77 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.45 kB - -
@sentry/browser (incl. Feedback) 47.69 kB - -
@sentry/browser (incl. sendFeedback) 35.18 kB - -
@sentry/browser (incl. FeedbackAsync) 40.33 kB - -
@sentry/browser (incl. Metrics) 31.43 kB - -
@sentry/browser (incl. Logs) 31.66 kB - -
@sentry/browser (incl. Metrics & Logs) 32.34 kB - -
@sentry/react 32.14 kB - -
@sentry/react (incl. Tracing) 50.82 kB - -
@sentry/vue 35.45 kB - -
@sentry/vue (incl. Tracing) 50.59 kB - -
@sentry/svelte 30.38 kB - -
CDN Bundle 32.32 kB - -
CDN Bundle (incl. Tracing) 49.59 kB - -
CDN Bundle (incl. Logs, Metrics) 33.84 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.88 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.38 kB - -
CDN Bundle (incl. Tracing, Replay) 87.12 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.4 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 92.93 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.18 kB - -
CDN Bundle - uncompressed 95.83 kB - -
CDN Bundle (incl. Tracing) - uncompressed 148.8 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.42 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.78 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.34 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 268.05 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272.01 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 281.75 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.7 kB - -
@sentry/nextjs (client) 53.4 kB - -
@sentry/sveltekit (client) 49.03 kB - -
@sentry/core/server 65.6 kB -0.13% -82 B 🔽
@sentry/core/browser 51.92 kB -0.16% -82 B 🔽
@sentry/node 118.66 kB -0.17% -191 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 82.67 kB -0.24% -196 B 🔽
@sentry/aws-serverless 92.03 kB -0.15% -134 B 🔽
@sentry/cloudflare (withSentry) - minified 214.7 kB -0.08% -151 B 🔽
@sentry/cloudflare (withSentry) 530.23 kB -0.05% -240 B 🔽

View base workflow run

@mydea
mydea marked this pull request as ready for review August 10, 2026 10:27
@mydea
mydea requested review from a team as code owners August 10, 2026 10:27
@mydea
mydea requested review from JPeer264, andreiborza and logaretm and removed request for a team August 10, 2026 10:27
@mydea
mydea merged commit 1eb615a into develop Aug 10, 2026
274 checks passed
@mydea
mydea deleted the fn/tracing-channels-binding branch August 10, 2026 11:18
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.

2 participants