Module: Appsignal::Loaders::PadrinoLoader::PadrinoIntegration Private

Defined in:
lib/appsignal/loaders/padrino.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

#route!(base = settings, pass_block = nil) ⇒ 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.

[View source]

28
29
30
31
32
33
34
35
36
37
# File 'lib/appsignal/loaders/padrino.rb', line 28

def route!(base = settings, pass_block = nil)
  return super if !Appsignal.active? || env["sinatra.static_file"]

  begin
    super
  ensure
    transaction = Appsignal::Transaction.current
    transaction.set_action_if_nil(get_payload_action(request))
  end
end