Class: Gruf::Instrumentation::OutputMetadataTimer
- Defined in:
- lib/gruf/instrumentation/output_metadata_timer.rb
Overview
Appends the timer metadata to the active call output metadata
Instance Attribute Summary
Attributes inherited from Base
#active_call, #call_signature, #execution_time, #options, #request, #response, #service
Instance Method Summary collapse
-
#call ⇒ Object
Handle the instrumented response.
Methods inherited from Base
#initialize, #setup, #success?
Methods included from Loggable
Constructor Details
This class inherits a constructor from Gruf::Instrumentation::Base
Instance Method Details
#call ⇒ Object
Handle the instrumented response. Note: this will only instrument timings of successful responses.
26 27 28 |
# File 'lib/gruf/instrumentation/output_metadata_timer.rb', line 26 def call active_call..update( => execution_time.to_s) end |