Class: Promenade::Waterdrop::ErrorSubscriber

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

Instance Method Summary collapse

Instance Method Details

#occurred(event) ⇒ Object



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

def occurred(event)
  labels = get_labels(event)

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