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

Fix puma integration for versions before v5 #2141

Merged
merged 2 commits into from
Oct 14, 2023
Merged

Fix puma integration for versions before v5 #2141

merged 2 commits into from
Oct 14, 2023

Conversation

st0012
Copy link
Collaborator

@st0012 st0012 commented Oct 14, 2023

Older versions of puma only takes 2 arguments for the Puma::Server#lowlevel_error method, so we need to pass the right number of arguments when calling super depending on the puma version.

Closes #2067

@st0012 st0012 added the bug fix label Oct 14, 2023
@st0012 st0012 self-assigned this Oct 14, 2023
@st0012 st0012 changed the title Fix Puma integration for older puma versions Fix puma integration for versions before v5 Oct 14, 2023
@codecov
Copy link

codecov bot commented Oct 14, 2023

Codecov Report

Merging #2141 (77faf7d) into master (d237c51) will increase coverage by 0.00%.
The diff coverage is 83.33%.

@@           Coverage Diff           @@
##           master    #2141   +/-   ##
=======================================
  Coverage   97.29%   97.30%           
=======================================
  Files          97       97           
  Lines        3627     3630    +3     
=======================================
+ Hits         3529     3532    +3     
  Misses         98       98           
Components Coverage Δ
sentry-ruby 97.98% <83.33%> (-0.04%) ⬇️
sentry-rails 94.96% <ø> (ø)
sentry-sidekiq 93.70% <ø> (ø)
sentry-resque 93.65% <ø> (+1.58%) ⬆️
sentry-delayed_job 94.36% <ø> (ø)
sentry-opentelemetry 100.00% <ø> (ø)
Files Coverage Δ
sentry-ruby/lib/sentry/puma.rb 92.30% <83.33%> (-7.70%) ⬇️

... and 1 file with indirect coverage changes

Older versions of puma only takes 2 arguments for the
`Puma::Server#lowlevel_error` method, so we need to pass the right number
of arguments when calling `super` depending on the puma version.
@st0012 st0012 merged commit 34d548c into master Oct 14, 2023
97 of 98 checks passed
@st0012 st0012 deleted the fix-#2067 branch October 14, 2023 17:01
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.

Error in capturing low-level errors when using puma v4
2 participants