Simple rails instrumentation for moped (A MongoDB driver for Ruby)
Ruby
#1 Compare This branch is 1 commit ahead of stan:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
Gemfile
MIT-LICENSE
README
Rakefile
moped-rails-instrumentation.gemspec

README

Moped Rails 3 Instrumentation
=============================

Records how long your rails app spends in Mongo (via Moped), 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 'moped-rails-instrumentation', '~>0.1'

It's been tested with rails 3.0, and should work with rails 3.1 too.

This gem is based on mongo-rails-instrumentation by Tom Ward, available at https://github.com/freerange/mongo-rails-instrumentation and then ported to Moped by Stan Mazurek at https://github.com/stan/mongo-rails-instrumentation. It is released here by me only to provide a gem.