Skip to content
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

ref(seer grouping): Add ability to ignore useless filenames #85277

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Feb 14, 2025

A customer recently switched the build tool for their iOS app, and it changed their app's stacktraces such that new groups are now being created when ideally they wouldn't be. There were multiple differences in the stacktraces, not all easily mitigated, but one straightforward one was that some frames went from having no filename property to having a filename property of <compiler-generated>.

To make it so that at least Seer will ignore this particular difference, this PR adds a list of filenames for us to ignore when constructing the stacktrace string we send it. We should also consider marking filename components with such filenames as non-contributing, but that will have to wait for a separate PR.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 14, 2025
stacktrace_string = get_stacktrace_string(exception)
assert (
stacktrace_string
== 'ZeroDivisionError: division by zero\n File "None", function divide_by_zero\n divide = 1/0'
Copy link
Member

Choose a reason for hiding this comment

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

None is there ✅

@lobsterkatie lobsterkatie marked this pull request as ready for review February 14, 2025 21:33
@lobsterkatie lobsterkatie requested a review from a team as a code owner February 14, 2025 21:33
@lobsterkatie lobsterkatie merged commit 6e6cd39 into master Feb 14, 2025
50 checks passed
@lobsterkatie lobsterkatie deleted the kmclb-ignore-compiler-generated-filename-in-seer-stacktrace-string branch February 14, 2025 21:34
@github-actions github-actions bot locked and limited conversation to collaborators Mar 2, 2025
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.

2 participants