-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
chore(similarity): Do not send over 30 system-only frames to seer #80946
chore(similarity): Do not send over 30 system-only frames to seer #80946
Conversation
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.
I think we need to work on the interface of this function. adding another parameter for metrics purposes is a sign that this function get_grouping_info_from_variants
is doing too many things and getting bloated.
I would recommend that if this case is reached, we instead raise an exception which we can then catch, call this metric, and set the value to empty string.
you can declare another function which holds this exception logic, which calls get_stacktrace_string
. and you can keep the endpoint call the same as we do not need metrics on that call.
IMO,i
Thank you for your review! |
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## master #80946 +/- ##
==========================================
+ Coverage 78.48% 78.50% +0.01%
==========================================
Files 7214 7206 -8
Lines 319710 319378 -332
Branches 44008 43959 -49
==========================================
- Hits 250937 250715 -222
+ Misses 62374 62272 -102
+ Partials 6399 6391 -8 |
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.
This looks very good!
Minor changes and some questions.
@@ -261,3 +262,55 @@ def test_returns_no_grouphash_and_empty_metadata_if_no_similar_group_found(self) | |||
expected_metadata, | |||
None, | |||
) | |||
|
|||
@patch("sentry.seer.similarity.utils.metrics") | |||
def test_too_many_only_system_frames(self, mock_metrics: Mock) -> None: |
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.
Do we have a test that tracks what happens if you have N exceptions and the sum of their frames is over MAX_FRAMES?
Do we have a test that handles multiple exceptions but only 1 frame is in-app?
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.
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. thanks for the changes. small comments!
PR reverted: 4b1562c |
…seer (#80946)" This reverts commit 5b7dad4. Co-authored-by: jangjodi <[email protected]>
…0946) If an event has no in-app frames and over 30 system frames, return an null formatted stacktrace string
…seer (#80946)" This reverts commit 5b7dad4. Co-authored-by: jangjodi <[email protected]>
…0946) If an event has no in-app frames and over 30 system frames, return an null formatted stacktrace string
…seer (#80946)" This reverts commit 5b7dad4. Co-authored-by: jangjodi <[email protected]>
…0946) If an event has no in-app frames and over 30 system frames, return an null formatted stacktrace string
…0946) If an event has no in-app frames and over 30 system frames, return an null formatted stacktrace string
…seer (#80946)" This reverts commit 5b7dad4. Co-authored-by: jangjodi <[email protected]>
If an event has no in-app frames and over 30 system frames, return an empty formatted stacktrace string
This will prevent the stacktrace from being sent to seer for the backfill
This will prevent the stacktrace from being sent to seer in ingest after this change is merged #80796
Add metrics for which platform this happens for and new referrer for
did_call_seer
metric