Class: Toy::Instrumentation::MetriksSubscriber
- Inherits:
-
Subscriber
- Object
- Subscriber
- Toy::Instrumentation::MetriksSubscriber
- Defined in:
- lib/toy/instrumentation/metriks_subscriber.rb
Instance Method Summary collapse
Methods inherited from Subscriber
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 |