feat(browser): Migrate spotlight event processor to ignoreSpans#20595
feat(browser): Migrate spotlight event processor to ignoreSpans#20595
ignoreSpans#20595Conversation
size-limit report 📦
|
ignoreSpansignoreSpans
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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' }]; |
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
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.

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