-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(ai-grouping): add secondary stacktrace filtering by token count #103106
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
base: master
Are you sure you want to change the base?
feat(ai-grouping): add secondary stacktrace filtering by token count #103106
Conversation
When checking stacktrace frame count we now add a secondary check for stacktraces which pass the frame count to also filter by token count. This is a first step towards moving to token count only.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #103106 +/- ##
===========================================
+ Coverage 79.79% 80.68% +0.88%
===========================================
Files 9200 9206 +6
Lines 392932 393318 +386
Branches 24992 24992
===========================================
+ Hits 313546 317354 +3808
+ Misses 78960 75538 -3422
Partials 426 426 |
src/sentry/seer/similarity/utils.py
Outdated
| "grouping.similarity.frame_count_filter", | ||
| "grouping.similarity.stacktrace_length_filter", | ||
| sample_rate=options.get("seer.similarity.metrics_sample_rate"), | ||
| tags={**shared_tags, "outcome": "block"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we update this outcome to block_by_frame_count or something like that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same in the call to report_token_count_metric
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yea for sure I want to differentiate between the two, not even a nit this is a real oversight, thanks 👍
shashjar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nit
JoshFerge
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
When checking stacktrace frame count we now add a secondary check for stacktraces which pass the frame count to also filter by token count. This is a first step towards moving to token count only.