Module: Appsignal::Integrations::ActiveSupportNotificationsIntegration::StartFinishIntegration Private
- Defined in:
- lib/appsignal/integrations/active_support_notifications.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
#finish(name, payload = {}) ⇒ 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.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/appsignal/integrations/active_support_notifications.rb', line 40 def finish(name, payload = {}) # Events that start with a bang are internal to Rails instrument_this = name[0] != ActiveSupportNotificationsIntegration::BANG if instrument_this title, body, body_format = Appsignal::EventFormatter.format(name, payload) Appsignal::Transaction.current.finish_event( name.to_s, title, body, body_format ) end super end |
#start(name, payload = {}) ⇒ 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.
31 32 33 34 35 36 37 38 |
# File 'lib/appsignal/integrations/active_support_notifications.rb', line 31 def start(name, payload = {}) # Events that start with a bang are internal to Rails instrument_this = name[0] != ActiveSupportNotificationsIntegration::BANG Appsignal::Transaction.current.start_event if instrument_this super end |