class WaterDrop::Instrumentation::Monitor

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

Public Class Methods

new( notifications_bus = WaterDrop::Instrumentation::Notifications.new, namespace = nil ) click to toggle source

@param notifications_bus [Object] either our internal notifications bus or

`ActiveSupport::Notifications`

@param namespace [String, nil] namespace for events or nil if no namespace

Calls superclass method
# File lib/waterdrop/instrumentation/monitor.rb, line 12
def initialize(
  notifications_bus = WaterDrop::Instrumentation::Notifications.new,
  namespace = nil
)
  super(notifications_bus, namespace)
end