Class: Karafka::Instrumentation::Monitor
- Inherits:
-
Core::Monitoring::Monitor
- Object
- Core::Monitoring::Monitor
- Karafka::Instrumentation::Monitor
- Defined in:
- lib/karafka/instrumentation/monitor.rb
Overview
Karafka 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 Attribute Summary collapse
-
#notifications_bus ⇒ Object
readonly
Returns the value of attribute notifications_bus.
Instance Method Summary collapse
-
#initialize(notifications_bus = ::Karafka::Instrumentation::Notifications.new, namespace = nil) ⇒ Monitor
constructor
A new instance of Monitor.
Constructor Details
#initialize(notifications_bus = ::Karafka::Instrumentation::Notifications.new, namespace = nil) ⇒ Monitor
Returns a new instance of Monitor.
14 15 16 17 18 19 |
# File 'lib/karafka/instrumentation/monitor.rb', line 14 def initialize( notifications_bus = ::Karafka::Instrumentation::Notifications.new, namespace = nil ) super(notifications_bus, namespace) end |
Instance Attribute Details
#notifications_bus ⇒ Object (readonly)
Returns the value of attribute notifications_bus.
9 10 11 |
# File 'lib/karafka/instrumentation/monitor.rb', line 9 def notifications_bus @notifications_bus end |