Module: Strumbar::Instrumentation::Mongoid::ControllerRuntime::ClassMethods

Defined in:
lib/strumbar/instrumentation/mongoid/controller_runtime.rb

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



37
38
39
40
41
# File 'lib/strumbar/instrumentation/mongoid/controller_runtime.rb', line 37

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