Class: WaterDrop::Instrumentation::ClassMonitor

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

Overview

WaterDrop class-level instrumentation monitor for global events This monitor only supports class-level lifecycle events, not per-producer events

Instance Method Summary collapse

Constructor Details

#initialize(notifications_bus = WaterDrop::Instrumentation::ClassNotifications.new, namespace = nil) ⇒ ClassMonitor

Returns a new instance of ClassMonitor.

Parameters:

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

    class-level notifications bus

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

    namespace for events or nil if no namespace



10
11
12
13
14
15
# File 'lib/waterdrop/instrumentation/class_monitor.rb', line 10

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