Skip to content

Adds additional information to rails logs about total time for MongoDB queries in action processing.

License

Notifications You must be signed in to change notification settings

Oxtilo/mongoid-rails-instrumentation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoidRailsInstrumentation

Adds additional information to rails logs about total time for MongoDB queries in action processing. Just add gem “mongoid-rails-instrumentation” to your Gemfile.

Example Output

Started GET "/" for x.x.x.x at 2013-02-19 09:06:25 +0100
Processing by PagesController#show as HTML
  Parameters: {"path"=>"/"}
  MOPED: 127.0.0.1:27017 COMMAND      database=admin command={:ismaster=>1} (0.4668ms)
Rendered text template (0.0ms)
Completed 200 OK in 60ms (Views: 14.2ms)
Mongo: (6.4668ms) | Query count: 1

About

Adds additional information to rails logs about total time for MongoDB queries in action processing.

Resources

License

Stars

Watchers

Forks

Packages

No packages published