No commit activity in last 3 years
No release in over 3 years
ActiveSupport/Rails instrumentation for Mongo
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.1
 Project Readme

Mongo Active Instrumentation

Pretty logging with colors for mongo/mongoid with rails.

Installation

Add this line to your application's Gemfile:

gem 'mongo_active_instrumentation'

And then execute:

$ bundle

Example

Started GET "/" for ::1
Processing by PagesController#show as HTML
  Parameters: {"path"=>"/"}
  Mongo (2.1ms)  {"find"=>"users", "filter"=>{"deleted_at"=>nil, "_id"=>BSON::ObjectId('4f796a9e83fa26bacf000360')}, "limit"=>1, "singleBatch"=>true}
Completed 200 OK in 54ms (Views: 9.7ms | Mongo: 2.1ms)

vs

Started GET "/" for ::1
Processing by PagesController#show as HTML
  Parameters: {"path"=>"/"}
MONGODB | localhost:27017 | app_development.find | STARTED | {"find"=>"users", "filter"=>{"deleted_at"=>nil, "_id"=>BSON::ObjectId('4f796a9e83fa26bacf000360')}, "limit"=>1, "singleBatch"=>true}
MONGODB | localhost:27017 | app_development.find | SUCCEEDED | 0.0021879999999999998s
Completed 200 OK in 54ms (Views: 9.7ms)