Class: WaterDrop::Instrumentation::Monitor

Inherits:
Karafka::Core::Monitoring::Monitor
  • Object
show all
Defined in:
lib/waterdrop/instrumentation/monitor.rb

Overview

WaterDrop instrumentation monitor that we use to publish events By default uses our internal notifications bus but can be used with ActiveSupport::Notifications as well

Instance Method Summary collapse

Constructor Details

#initialize(notifications_bus = WaterDrop::Instrumentation::Notifications.new, namespace = nil) ⇒ Monitor

Returns a new instance of Monitor.

Parameters:

  • notifications_bus (Object) (defaults to: WaterDrop::Instrumentation::Notifications.new)

    either our internal notifications bus or ActiveSupport::Notifications

  • namespace (String, nil) (defaults to: nil)

    namespace for events or nil if no namespace



12
13
14
15
16
17
# File 'lib/waterdrop/instrumentation/monitor.rb', line 12

def initialize(
  notifications_bus = WaterDrop::Instrumentation::Notifications.new,
  namespace = nil
)
  super(notifications_bus, namespace)
end