Class: Gruf::Instrumentation::OutputMetadataTimer

Inherits:
Base
  • Object
show all
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

Methods inherited from Base

#initialize, #setup, #success?

Methods included from Loggable

#logger

Constructor Details

This class inherits a constructor from Gruf::Instrumentation::Base

Instance Method Details

#callObject

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