Skip to content

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

Merged
szokeasaurusrex merged 4 commits intomasterfrom
szokeasaurusrex/falcon-custom-exception
Oct 25, 2023
Merged

fix(integrations): Falcon integration checks response status before reporting error#2465
szokeasaurusrex merged 4 commits intomasterfrom
szokeasaurusrex/falcon-custom-exception

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