Skip to content

feat(browser): Migrate spotlight event processor to ignoreSpans - #20595

Merged
chargome merged 5 commits into
developfrom
cg/spotlight-ignore-spans
Apr 30, 2026
Merged

feat(browser): Migrate spotlight event processor to ignoreSpans#20595
chargome merged 5 commits into
developfrom
cg/spotlight-ignore-spans

Conversation

@chargome

@chargomechargome commented Apr 29, 2026

Copy link
Copy Markdown
Member

Added some integration tests too, might be an overkill but they are quite simple.

closes#20363

@chargomechargome self-assigned this Apr 29, 2026
@github-actions

github-actionsBot commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize% ChangeChange
@sentry/browser26.16 kB--
@sentry/browser - with treeshaking flags24.63 kB--
@sentry/browser (incl. Tracing)44.13 kB--
@sentry/browser (incl. Tracing + Span Streaming)46.34 kB--
@sentry/browser (incl. Tracing, Profiling)49.08 kB--
@sentry/browser (incl. Tracing, Replay)83.48 kB--
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags72.96 kB--
@sentry/browser (incl. Tracing, Replay with Canvas)88.15 kB--
@sentry/browser (incl. Tracing, Replay, Feedback)100.8 kB--
@sentry/browser (incl. Feedback)43.4 kB--
@sentry/browser (incl. sendFeedback)30.96 kB--
@sentry/browser (incl. FeedbackAsync)36.14 kB--
@sentry/browser (incl. Metrics)27.44 kB--
@sentry/browser (incl. Logs)27.59 kB--
@sentry/browser (incl. Metrics & Logs)28.28 kB--
@sentry/react27.9 kB--
@sentry/react (incl. Tracing)46.36 kB--
@sentry/vue31.03 kB--
@sentry/vue (incl. Tracing)45.96 kB--
@sentry/svelte26.18 kB--
CDN Bundle28.85 kB--
CDN Bundle (incl. Tracing)46.91 kB--
CDN Bundle (incl. Logs, Metrics)30.27 kB--
CDN Bundle (incl. Tracing, Logs, Metrics)48.03 kB--
CDN Bundle (incl. Replay, Logs, Metrics)69.35 kB--
CDN Bundle (incl. Tracing, Replay)84.07 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics)85.14 kB--
CDN Bundle (incl. Tracing, Replay, Feedback)89.86 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics)90.96 kB--
CDN Bundle - uncompressed84.55 kB--
CDN Bundle (incl. Tracing) - uncompressed140.16 kB--
CDN Bundle (incl. Logs, Metrics) - uncompressed88.75 kB--
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed143.62 kB--
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed212.71 kB--
CDN Bundle (incl. Tracing, Replay) - uncompressed257.96 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed261.41 kB--
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed271.66 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed275.1 kB--
@sentry/nextjs (client)48.85 kB+0.01%+1 B 🔺
@sentry/sveltekit (client)44.58 kB--
@sentry/node-core59.06 kB+0.02%+9 B 🔺
@sentry/node170.35 kB+0.01%+14 B 🔺
@sentry/node - without tracing96.92 kB+0.01%+8 B 🔺
@sentry/aws-serverless113.78 kB+0.03%+31 B 🔺
@sentry/cloudflare (withSentry) - minified164.96 kB--
@sentry/cloudflare (withSentry)417.1 kB--

View base workflow run

@chargomechargome changed the title ref(browser): Migrate spotlight event processor to ignoreSpansfeat(browser): Migrate spotlight event processor to ignoreSpansApr 29, 2026
@chargome
chargome marked this pull request as ready for review April 29, 2026 13:20
@chargome
chargome requested a review from a team as a code ownerApril 29, 2026 13:20

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

Nice!

@cursorcursorBot 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 8015ae2. Configure here.


export const INTEGRATION_NAME = 'SpotlightBrowser';

export const SPOTLIGHT_IGNORE_SPANS = [{ op: 'ui.interaction.click', name: '#sentry-spotlight' }];

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.

h: Before we dropped the whole transaction if any of these spans were detected, this behaves differently now since this will only match non-segment spans as far as I understand. Should we try to detect the segment span instead (so that then the whole segment gets dropped if it matches)?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

A tradeoff yes, there's no ignoreSpans pattern that can match the segment span to drop the whole thing

Filtering entire segments based on data that is unknown prior to segment start.

@chargome
chargome merged commit ae8ff88 into developApr 30, 2026
500 of 502 checks passed
@chargome
chargome deleted the cg/spotlight-ignore-spans branch April 30, 2026 08:09
Sign up for freeto 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.

Event processor migration: Browser Spotlight interaction spans filter

3 participants

@chargome@logaretm@nicohrubec