Class: Flipper::Instrumentation::MetriksSubscriber
- Inherits:
-
Subscriber
- Object
- Subscriber
- Flipper::Instrumentation::MetriksSubscriber
- Defined in:
- lib/flipper/instrumentation/metriks_subscriber.rb
Constant Summary
Constants inherited from Subscriber
Instance Method Summary collapse
Methods inherited from Subscriber
call, #initialize, #strip_trailing_question_mark, #update, #update_adapter_operation_metrics, #update_feature_operation_metrics
Constructor Details
This class inherits a constructor from Flipper::Instrumentation::Subscriber
Instance Method Details
#update_counter(metric) ⇒ Object
15 16 17 |
# File 'lib/flipper/instrumentation/metriks_subscriber.rb', line 15 def update_counter(metric) Metriks.meter(metric).mark end |
#update_timer(metric) ⇒ Object
11 12 13 |
# File 'lib/flipper/instrumentation/metriks_subscriber.rb', line 11 def update_timer(metric) Metriks.timer(metric).update(@duration) end |