Module: DatastaxRails::Instrumentation::ControllerRuntime::ClassMethods

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object


43
44
45
46
47
48
# File 'lib/datastax_rails/instrumentation/controller_runtime.rb', line 43

def log_process_action(payload)
  messages, solr_runtime, cql_runtime = super, payload[:solr_runtime], payload[:cql_runtime]
  messages << format('Solr: %.1fms', solr_runtime.to_f) if solr_runtime
  messages << format('CQL: %.1fms', cql_runtime.to_f) if cql_runtime
  messages
end