Class: Karafka::Instrumentation::ProctitleListener
- Inherits:
-
Object
- Object
- Karafka::Instrumentation::ProctitleListener
- Defined in:
- lib/karafka/instrumentation/proctitle_listener.rb
Overview
Listener that sets a proc title with a nice descriptive value
Instance Method Summary collapse
-
#on_app_initializing(_event) ⇒ Object
Updates proc title to an initializing one.
-
#on_app_running(_event) ⇒ Object
Updates proc title to a running one.
-
#on_app_stopping(_event) ⇒ Object
Updates proc title to a stopping one.
Instance Method Details
#on_app_initializing(_event) ⇒ Object
Updates proc title to an initializing one
9 10 11 |
# File 'lib/karafka/instrumentation/proctitle_listener.rb', line 9 def on_app_initializing(_event) setproctitle('initializing') end |
#on_app_running(_event) ⇒ Object
Updates proc title to a running one
15 16 17 |
# File 'lib/karafka/instrumentation/proctitle_listener.rb', line 15 def on_app_running(_event) setproctitle('running') end |
#on_app_stopping(_event) ⇒ Object
Updates proc title to a stopping one
21 22 23 |
# File 'lib/karafka/instrumentation/proctitle_listener.rb', line 21 def on_app_stopping(_event) setproctitle('stopping') end |