Module: Appsignal::Integrations::PumaServer Private
- Defined in:
- lib/appsignal/integrations/puma.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Instance Method Details
#lowlevel_error(error, env, response_status = 500) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/appsignal/integrations/puma.rb', line 7 def lowlevel_error(error, env, response_status = 500) response = if method(:lowlevel_error).super_method.arity.abs == 3 # Puma >= 5 super else # Puma <= 4 super(error, env) end unless PumaServerHelper.ignored_error?(error) Appsignal.report_error(error) do |transaction| Appsignal::Rack::ApplyRackRequest .new(::Rack::Request.new(env)) .apply_to(transaction) transaction.( :reported_by => :puma_lowlevel_error, :response_status => response_status ) end end response end |