Skip to content

feat(spans): Group all browser resources together - #2676

Merged
jjbayer merged 3 commits into
masterfrom
feat/spans-browser-extensions
Oct 31, 2023
Merged

jjbayer merged 3 commits into
masterfrom
feat/spans-browser-extensions

Conversation

@jjbayer

@jjbayer jjbayer commented Oct 31, 2023 •

Copy link
Copy Markdown
Member

We want to filter out resource spans from browser extensions, so scrub their description to browser-extension://* such that they all end up in the same group.

ref: getsentry/sentry#58723

#skip-changelog

"chrome-extension://begnopegbbhjeeiganiajffnalhlkkjb/img/assets/icon-10k.svg",
"resource.other",
"chrome-extension://*/img/assets/icon-*k.svg"
"browser-extension://*"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@DominikB2014 my idea here was to group all browser extension resources together so they can be easily filtered out on the querying side. Is this an acceptable solution, or do we need to actually remove those spans from our data?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah i think this would be good, if can can filter out all browser-extensions when querying.

One question, In this case what would the domain be set to? We've been having very random domains set for chrome extensions
image

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good question, let me add a test for that.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

With the current change, the domain will be "*".

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So to filter out extensions, we would add span.domain != '*'?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I guess the safer way would be to filter on the group or description != 'browser-extension://*, because other resources could theoretically also have domain == '*'.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah that makes sense, this should work for the product then, if there's any issues (I don't suspect any), we can revist.
Thanks for making the update @jjbayer!

@jjbayer
jjbayer marked this pull request as ready for review October 31, 2023 08:31
@jjbayer
jjbayer requested a review from a team October 31, 2023 08:31
@jjbayer
jjbayer enabled auto-merge (squash) October 31, 2023 15:19
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.

4 participants