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

Avoid reporting bad requests to Sentry #3454

Closed
wants to merge 5 commits into from

Conversation

rauchy
Copy link
Contributor

@rauchy rauchy commented Feb 17, 2019

No description provided.

@rauchy rauchy requested a review from arikfr February 17, 2019 21:13
@request-info request-info bot added the Needs More Information Seen by a team member, not ready for a full review label Feb 17, 2019
@ghost ghost assigned rauchy Feb 17, 2019
@ghost ghost added in progress and removed Needs More Information Seen by a team member, not ready for a full review labels Feb 17, 2019
@getredash getredash deleted a comment from request-info bot Feb 19, 2019
@arikfr
Copy link
Member

arikfr commented Feb 19, 2019

Does this include 404s?

@@ -4,7 +4,7 @@
from redash import settings, __version__


NON_REPORTED_EXCEPTIONS = ['QueryExecutionError']
NON_REPORTED_EXCEPTIONS = ['BadRequest', 'QueryExecutionError']
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@arikfr nope, only 400s. If you want 404s as well, smash this:

Suggested change
NON_REPORTED_EXCEPTIONS = ['BadRequest', 'QueryExecutionError']
NON_REPORTED_EXCEPTIONS = ['NotFound', 'BadRequest', 'QueryExecutionError']

Copy link
Member

Choose a reason for hiding this comment

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

Only the author of the PR, can accept suggestions... Do you think we should keep reporting 404s there?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The only thing I can think that we should keep 404s for is any manual construction of links in the frontend that might not pop up as a bug during development and testing.

Copy link
Member

Choose a reason for hiding this comment

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

Two things about this:

  1. In dev/test we don't send Sentry reports anyway.
  2. This kind of issues should be tracked from the frontend.

@rauchy
Copy link
Contributor Author

rauchy commented Mar 2, 2019

So where are we with regards to this PR? Do we still want to keep 400s after all?

@arikfr
Copy link
Member

arikfr commented Mar 3, 2019

So where are we with regards to this PR? Do we still want to keep 400s after all?

I'm conflicted. On the one hand it feels to me that Sentry should receive only actionable issues. On the otherhand, it proved useful debugging a production issue 🤔

I will open a thread in Sentry's forum to see what they recommend.

@arikfr
Copy link
Member

arikfr commented Mar 3, 2019

https://forum.sentry.io/t/what-to-do-about-inactionable-errors/6059

@guidopetri
Copy link
Contributor

@rauchy , thanks for the PR! We've updated a lot of things now that we're Community-driven so - if you're still interested in getting this merged - would you mind rebasing off master to re-run the CI, as well as updating merge conflicts?

We're trying to clean up our PR todo list, so if you're not interested, that's fine - we'll close the PR in about a week if we don't hear back. If you're interested in reopening the PR afterwards, we would also very much welcome that.

@justinclift
Copy link
Member

justinclift commented Jul 24, 2023

Looking over that message on the Sentry forums, it seems like sending the extra data does have uses:

We were about to filter those errors, but then we had a production issue resulting in a BadRequest exception.
Having all the data Sentry includes with each event was a god send and allowed to resolve this issue in
minutes.

So, lets not merge this PR. We can revisit this topic later on if this turns out to be a bad move. 😁

@justinclift justinclift deleted the avoid-reporting-bad-requests-to-sentry branch July 24, 2023 05:33
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.

4 participants