Skip to content

ref(insights): remove span.module filter if span.op is provided #92578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

DominikB2014
Copy link
Contributor

@DominikB2014 DominikB2014 commented May 30, 2025

If there is an equivalent query that can be represented in a simpler manor, it should be used instead. When you open an insight chart in explore, we don't want users to be confused what the query is doing.

In this case we remove the span.module filter, anytime there's an appropriate span.op filter as well.
for example span.category:http span.op:http.client - used in the http module, can be simplified to span.op:http.client as the category filter is a superset of the operation filter

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 30, 2025
Copy link

codecov bot commented May 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #92578      +/-   ##
==========================================
+ Coverage   86.81%   87.89%   +1.07%     
==========================================
  Files       10244    10237       -7     
  Lines      587471   586765     -706     
  Branches    22817    22789      -28     
==========================================
+ Hits       510000   515717    +5717     
+ Misses      77041    70622    -6419     
+ Partials      430      426       -4     

@DominikB2014 DominikB2014 marked this pull request as ready for review May 30, 2025 19:25
@DominikB2014 DominikB2014 requested a review from a team as a code owner May 30, 2025 19:25
@DominikB2014 DominikB2014 merged commit 5a4e539 into master Jun 2, 2025
43 checks passed
@DominikB2014 DominikB2014 deleted the dominikbuszowiecki/dain-575-remove-spanmodule-filters-when-spanop-filter-is-provided branch June 2, 2025 14:30
andrewshie-sentry pushed a commit that referenced this pull request Jun 2, 2025
…92578)

If there is an equivalent query that can be represented in a simpler
manor, it should be used instead. When you open an insight chart in
explore, we don't want users to be confused what the query is doing.

In this case we remove the `span.module` filter, anytime there's an
appropriate `span.op` filter as well.
for example `span.category:http span.op:http.client` - used in the http
module, can be simplified to `span.op:http.client` as the category
filter is a superset of the operation filter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants