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

filter sentry tx rejected errors #1580

Merged
merged 3 commits into from Jun 1, 2020

Conversation

estebanmino
Copy link
Contributor

Description

We have many User rejected the transaction errors on sentry that don't give us any value because that's what happens when a user rejects a tx, is not an error nor a crash. So I added a filter to not send that to sentry.

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

Issue

Resolves #???

Copy link
Member

@andrepimenta andrepimenta left a comment

Choose a reason for hiding this comment

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

Just one comment, if we are going to have more of those "errors" ignored. Maybe use an array.
And then instead of if (error && error.message !== REJECTED_TRANSACTION_ERROR) we could do if (!ignoreErrors.find(ignore => error && ignore === error.message) ), something like this.

Otherwise, LGTM! 👍

@ibrahimtaveras00
Copy link
Contributor

Does this one need QA?

I'd say it's good to merge and I can double check during regression testing

@ibrahimtaveras00 ibrahimtaveras00 added the No QA Needed/E2E Only Apply this label when your PR does not need any QA effort. label May 29, 2020
@ibrahimtaveras00 ibrahimtaveras00 requested a review from a team as a code owner May 29, 2020 00:57
@estebanmino estebanmino merged commit 957534b into develop Jun 1, 2020
@estebanmino estebanmino deleted the filter-sentry-tx-rejected-errors branch June 1, 2020 19:30
rickycodes pushed a commit that referenced this pull request Jan 31, 2022
Co-authored-by: Ibrahim Taveras <ibrahimtaveras00@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next release No QA Needed/E2E Only Apply this label when your PR does not need any QA effort.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants