8000 fix(integrations): Falcon integration checks response status before reporting error by szokeasaurusrex · Pull Request #2465 · getsentry/sentry-python · GitHub
[go: up one dir, main page]

Skip to content

fix(integrations): Falcon integration checks response status before reporting error #2465

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

Merged
merged 4 commits into from
Oct 25, 2023

Conversation

szokeasaurusrex
Copy link
Member

This change fixes an issue where the Falcon integration would report an error occurring in a Falcon request handler to Sentry, even though a Falcon custom event handler was handling the exception, causing an HTTP status other than 5xx to be returned. From now on, Falcon will inspect the HTTP status on the response before sending the associated error event to Sentry, and the error will only be reported if the response status is a 5xx status.

Fixes #1362

Copy link
Contributor
@sentrivana sentrivana left a comment

Choose a reason for hiding this comment

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

LGTM but seems like the tests for some versions are failing

@szokeasaurusrex szokeasaurusrex enabled auto-merge (squash) October 25, 2023 13:49
@szokeasaurusrex szokeasaurusrex merged commit c1d157d into master Oct 25, 2023
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/falcon-custom-exception branch October 25, 2023 14:00
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.

Falcon integration does not respect custom exception handlers
2 participants
0