Skip to content

Conversation

@roaga
Copy link
Member

@roaga roaga commented Dec 14, 2025

Adds an RPC that queries for tag distributions outside of a given issue. We don't need one for inside an issue because we already get that through get_issue_details, at least for the current use case in Explorer (https://github.com/getsentry/seer/pull/4276)

This query is very similar to what's used in existing suspect tags/flags code so should be acceptable performance-wise.

Closes AIML-2053

@linear
Copy link

linear bot commented Dec 14, 2025

AIML-2053 suspect tags

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 14, 2025
@codecov
Copy link

codecov bot commented Dec 14, 2025

Codecov Report

❌ Patch coverage is 83.33333% with 4 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/seer/explorer/tools.py 83.33% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #104928      +/-   ##
===========================================
+ Coverage   80.61%    80.62%   +0.01%     
===========================================
  Files        9413      9409       -4     
  Lines      403715    403572     -143     
  Branches    25662     25623      -39     
===========================================
- Hits       325454    325395      -59     
+ Misses      77792     77710      -82     
+ Partials      469       467       -2     

start_dt = end_dt - timedelta(days=7)

query = Query(
match=Entity("events"),
Copy link
Member

Choose a reason for hiding this comment

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

note this will only include error events and not performance issue occurrences

@roaga roaga marked this pull request as ready for review December 16, 2025 18:51
@roaga roaga requested a review from a team as a code owner December 16, 2025 18:51
@roaga roaga merged commit af527ae into master Dec 17, 2025
67 checks passed
@roaga roaga deleted the explorer/suspect-tag-rpc branch December 17, 2025 16:08
@github-actions github-actions bot locked and limited conversation to collaborators Jan 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants