Module: Mongo::Rails::Instrumentation::ControllerRuntime::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



30
31
32
33
34
# File 'lib/mongo/rails/instrumentation/controller_runtime.rb', line 30

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