Module: Appsignal::Integrations::ActiveSupportNotificationsIntegration::FinishStateIntegration
- Defined in:
- lib/appsignal/integrations/active_support_notifications.rb
Instance Method Summary collapse
Instance Method Details
#finish_with_state(listeners_state, name, payload = {}) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/appsignal/integrations/active_support_notifications.rb', line 58 def finish_with_state(listeners_state, 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 |