Class: Toy::Instrumentation::MetriksSubscriber

Inherits:
Subscriber show all
Defined in:
lib/toy/instrumentation/metriks_subscriber.rb

Instance Method Summary collapse

Methods inherited from Subscriber

call, #initialize, #update

Constructor Details

This class inherits a constructor from Toy::Instrumentation::Subscriber

Instance Method Details

#update_timer(metric) ⇒ Object



11
12
13
# File 'lib/toy/instrumentation/metriks_subscriber.rb', line 11

def update_timer(metric)
  Metriks.timer(metric).update(@duration)
end