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

Respect report_rescued_exceptions config #1847

Merged
merged 2 commits into from
Jul 18, 2022
Merged

Respect report_rescued_exceptions config #1847

merged 2 commits into from
Jul 18, 2022

Conversation

st0012
Copy link
Collaborator

@st0012 st0012 commented Jul 16, 2022

When an exception is going to be swallowed by ShowExceptions middleware, we should check the report_rescued_exceptions config before reporting it.

Fixes #1840

When an exception is going to be swallowed by ShowExceptions middleware,
we should check the report_rescued_exceptions config before reporting
it.

See #1840 for more details
@st0012 st0012 added this to the 5.4.0 milestone Jul 16, 2022
@st0012 st0012 self-assigned this Jul 16, 2022
@st0012 st0012 added this to In progress in 5.x via automation Jul 16, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jul 16, 2022

Codecov Report

Merging #1847 (0855249) into master (5c8a5e3) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1847      +/-   ##
==========================================
- Coverage   98.38%   98.37%   -0.02%     
==========================================
  Files         146      146              
  Lines        8676     8683       +7     
==========================================
+ Hits         8536     8542       +6     
- Misses        140      141       +1     
Impacted Files Coverage Δ
...entry-rails/lib/sentry/rails/capture_exceptions.rb 96.29% <100.00%> (+0.29%) ⬆️
sentry-rails/spec/sentry/rails_spec.rb 84.56% <100.00%> (+0.42%) ⬆️
sentry-ruby/lib/sentry/rack/capture_exceptions.rb 95.12% <100.00%> (ø)
sentry-resque/lib/sentry/resque.rb 97.14% <0.00%> (-2.86%) ⬇️
sentry-ruby/lib/sentry/interfaces/exception.rb 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5c8a5e3...0855249. Read the comment docs.

@st0012 st0012 requested a review from sl0thentr0py July 16, 2022 11:25
@st0012 st0012 merged commit 1db9d5f into master Jul 18, 2022
5.x automation moved this from In progress to Done Jul 18, 2022
@st0012 st0012 deleted the fix-#1840 branch July 18, 2022 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
5.x
Done
Development

Successfully merging this pull request may close these issues.

The report_rescued_exceptions option is not honoured in a Rails production environment
3 participants