https://github.com/mnutt/mongo-rails-instrumentation
Records time taken in mongo, and add result to Rails request log
https://github.com/mnutt/mongo-rails-instrumentation
Last synced: about 1 month ago
JSON representation
Records time taken in mongo, and add result to Rails request log
- Host: GitHub
- URL: https://github.com/mnutt/mongo-rails-instrumentation
- Owner: mnutt
- License: mit
- Created: 2011-05-12T18:45:35.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2011-05-12T19:36:15.000Z (about 15 years ago)
- Last Synced: 2025-01-09T23:54:02.661Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 503 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: MIT-LICENSE
Awesome Lists containing this project
README
Mongo Rails 3 Instrumentation
=============================
Records how long your rails app spends in Mongo, and outputs it to the log, i.e.:
Completed 200 OK in 1535ms (Views: 623.3ms | Mongo: 848.2ms)
To use, just add the gem to your Gemfile and restart your app:
gem 'mongo-rails-instrumentation', '~>0.2'
It's been tested with rails 3.0, and should work with rails 3.1 too.
This gem's home is on github at https://github.com/tomafro/mongo-rails-instrumentation, so please add comments, suggestions and improvements there. All code is released under the MIT License.