Class: Promenade::Karafka::ErrorSubscriber

Inherits:
Subscriber
  • Object
show all
Defined in:
lib/promenade/karafka/error_subscriber.rb

Instance Method Summary collapse

Instance Method Details

#occurred(event) ⇒ Object



12
13
14
15
16
# File 'lib/promenade/karafka/error_subscriber.rb', line 12

def occurred(event)
  labels = get_labels(event)

  Promenade.metric(:karafka_errors).increment(labels)
end