Class: Karafka::Instrumentation::Notifications
- Inherits:
-
Core::Monitoring::Notifications
- Object
- Core::Monitoring::Notifications
- Karafka::Instrumentation::Notifications
- Defined in:
- lib/karafka/instrumentation/notifications.rb
Overview
Note:
This class acts as a singleton because we are only permitted to have single monitor per running process (just as logger)
Monitor is used to hookup external monitoring services to monitor how Karafka works It provides a standardized API for checking incoming messages/enqueueing etc Since it is a pub-sub based on dry-monitor, you can use as many subscribers/loggers at the same time, which means that you might have for example file logging and NewRelic at the same time
Instance Method Summary collapse
-
#initialize ⇒ Karafka::Instrumentation::Monitor
constructor
Monitor instance for system instrumentation.
Constructor Details
#initialize ⇒ Karafka::Instrumentation::Monitor
Returns monitor instance for system instrumentation.
60 61 62 63 |
# File 'lib/karafka/instrumentation/notifications.rb', line 60 def initialize super EVENTS.each { |event| register_event(event) } end |