Module: ElasticsearchRecord::Instrumentation::ControllerRuntime::ClassMethods

Defined in:
lib/elasticsearch_record/instrumentation/controller_runtime.rb

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



31
32
33
34
35
# File 'lib/elasticsearch_record/instrumentation/controller_runtime.rb', line 31

def log_process_action(payload)
  messages, elasticsearch_runtime = super, payload[:elasticsearch_record_runtime]
  messages << ("ElasticsearchRecord: %.1fms" % elasticsearch_runtime.to_f) if elasticsearch_runtime
  messages
end