Class: Appsignal::Integrations::ActiveSupportEventReporter::Subscriber
- Defined in:
- lib/appsignal/integrations/active_support_event_reporter.rb
Instance Method Summary collapse
- #emit(event) ⇒ Object
-
#initialize ⇒ Subscriber
constructor
A new instance of Subscriber.
Constructor Details
#initialize ⇒ Subscriber
Returns a new instance of Subscriber.
8 9 10 |
# File 'lib/appsignal/integrations/active_support_event_reporter.rb', line 8 def initialize @logger = Appsignal::Logger.new("rails_events") end |
Instance Method Details
#emit(event) ⇒ Object
12 13 14 |
# File 'lib/appsignal/integrations/active_support_event_reporter.rb', line 12 def emit(event) @logger.info(event[:name], event[:payload]) end |