Skip to content

ref(browser)!: Remove beforeSpanEnd callback in favor of beforeIdleSpanEnd hook - #22818

Merged
msonnb merged 3 commits into
developfrom
ms/before-idle-span-end
Jul 29, 2026
Merged

ref(browser)!: Remove beforeSpanEnd callback in favor of beforeIdleSpanEnd hook#22818
msonnb merged 3 commits into
developfrom
ms/before-idle-span-end

Conversation

@msonnb

@msonnb msonnb commented Jul 29, 2026

Copy link
Copy Markdown
Member

#22554 introduced a new beforeIdleSpanEnd client hook. We can use it instead of the existing idle span's beforeSpanEnd callback.

Breaking change because startIdleSpan is publicly exported, but I confirmed that we do not document this anywhere

@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.82 kB - -
@sentry/browser - with treeshaking flags 28.02 kB - -
@sentry/browser (incl. Tracing) 47.08 kB -0.04% -18 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 47.09 kB -0.04% -15 B 🔽
@sentry/browser (incl. Tracing, Profiling) 51.82 kB +0.03% +14 B 🔺
@sentry/browser (incl. Tracing, Replay) 86.39 kB -0.01% -8 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.83 kB -0.02% -8 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 91.11 kB -0.02% -14 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 103.76 kB -0.01% -6 B 🔽
@sentry/browser (incl. Feedback) 47.13 kB - -
@sentry/browser (incl. sendFeedback) 34.66 kB - -
@sentry/browser (incl. FeedbackAsync) 39.76 kB - -
@sentry/browser (incl. Metrics) 30.89 kB - -
@sentry/browser (incl. Logs) 31.12 kB - -
@sentry/browser (incl. Metrics & Logs) 31.8 kB - -
@sentry/react 31.6 kB - -
@sentry/react (incl. Tracing) 49.33 kB -0.01% -4 B 🔽
@sentry/vue 34.74 kB - -
@sentry/vue (incl. Tracing) 49.05 kB -0.02% -5 B 🔽
@sentry/svelte 29.85 kB - -
CDN Bundle 31.87 kB - -
CDN Bundle (incl. Tracing) 47.45 kB -0.01% -4 B 🔽
CDN Bundle (incl. Logs, Metrics) 33.42 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 48.82 kB -0.02% -8 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 72.78 kB - -
CDN Bundle (incl. Tracing, Replay) 85.08 kB -0.02% -16 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.38 kB -0.02% -10 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 90.85 kB -0.02% -10 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.16 kB -0.02% -12 B 🔽
CDN Bundle - uncompressed 95.04 kB - -
CDN Bundle (incl. Tracing) - uncompressed 142.27 kB +0.01% +12 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.75 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 146.25 kB +0.01% +12 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 224.51 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 261.52 kB +0.01% +12 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 265.49 kB +0.01% +12 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 275.23 kB +0.01% +12 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 279.18 kB +0.01% +12 B 🔺
@sentry/nextjs (client) 51.92 kB -0.01% -5 B 🔽
@sentry/sveltekit (client) 47.51 kB -0.01% -2 B 🔽
@sentry/core/server 79.59 kB -0.02% -15 B 🔽
@sentry/core/browser 51.58 kB -0.03% -14 B 🔽
@sentry/node 121.3 kB +0.01% +1 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B - -
@sentry/node - without tracing 84.77 kB - -
@sentry/aws-serverless 93.02 kB - -
@sentry/cloudflare (withSentry) - minified 197.55 kB - -
@sentry/cloudflare (withSentry) 485.69 kB - -

View base workflow run

@msonnb

msonnb commented Jul 29, 2026

Copy link
Copy Markdown
Member Author

bugbot run

@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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 583efda. Configure here.

@msonnb
msonnb marked this pull request as ready for review July 29, 2026 14:26
@msonnb
msonnb requested a review from a team as a code owner July 29, 2026 14:26
@msonnb
msonnb requested review from Lms24 and logaretm and removed request for a team July 29, 2026 14:26

@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 9a26aa8. Configure here.

Comment thread packages/browser/src/tracing/browserTracingIntegration.ts

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since there's no documentation this is fine IMHO. Thx!

@msonnb
msonnb merged commit 6acb3d4 into develop Jul 29, 2026
527 of 529 checks passed
@msonnb
msonnb deleted the ms/before-idle-span-end branch July 29, 2026 15:48
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