Module: Elasticsearch::Rails::Instrumentation::ControllerRuntime::ClassMethods

Defined in:
lib/elasticsearch/rails/instrumentation/controller_runtime.rb

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



49
50
51
52
53
# File 'lib/elasticsearch/rails/instrumentation/controller_runtime.rb', line 49

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