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

fix(normalization): Light normalize stacktrace before filtering [ISSUE-1574] #1423

Merged
merged 6 commits into from
Aug 29, 2022

Conversation

iker-barriocanal
Copy link
Contributor

Browser extension filters require the normalization of the last frame of
the stacktrace of the first exception of the event.

Currently, this isn't part of the light normalization, which makes the
filter useless and events originating in browser extensions get to Sentry.

Browser extension filters require the normalization of the last frame of
the stacktrace of the first exception of the event.

Currently, this isn't part of the light normalization, which makes the
filter useless and events coming from browser extensions get to Sentry.
@iker-barriocanal iker-barriocanal requested a review from a team August 18, 2022 11:53
@iker-barriocanal iker-barriocanal self-assigned this Aug 18, 2022
Comment on lines 586 to 587
normalize_exceptions(event)?; // Browser extension filters look at the stacktrace
light_normalize_stacktraces(event)?;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

light_normalize_stacktraces doesn't replace normalize_exceptions, as it works with stacktraces. The operation is simple and it's possible to refactor the method and keep only the stuff we need in light normalization, but I don't want to refactor that until it becomes an issue or we need some performance improvement.

relay-general/src/store/normalize.rs Outdated Show resolved Hide resolved
tests/integration/test_filters.py Outdated Show resolved Hide resolved
relay-general/src/store/normalize.rs Outdated Show resolved Hide resolved
@iker-barriocanal iker-barriocanal merged commit 8824dde into master Aug 29, 2022
@iker-barriocanal iker-barriocanal deleted the iker/fix/filter-browser-ext branch August 29, 2022 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants