Giter Club home page Giter Club logo

peek-mongo's Introduction

Peek::Mongo

Take a peek into the Mongo commands made within your Rails application.

Things this peek view provides:

  • Total number of Mongo commands called during the request
  • The duration of the calls made during the request

Installation

Add this line to your application's Gemfile:

gem 'peek-mongo'

And then execute:

$ bundle

Or install it yourself as:

$ gem install peek-mongo

Usage

Add the following to your config/initializers/peek.rb:

Peek.into Peek::Views::Mongo

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

peek-mongo's People

Contributors

aquageek avatar dewski avatar skipperguy12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

peek-mongo's Issues

Cut a release?

Theres been updates to this gem to update compatibility, that I need. Is a release being cut anytime soon?

Add support for mongoid

Sorry, this may be a bit of a feature request/suggestion, not sure those are allowed.

Mongoid is the most (second most?) popular mongo framework for ruby. It uses its own backend (moped) for talking to mongo as opposed to the official driver.

I spent some time investigating how to time/count moped/mongoid queries but to no avail. If anyone has any insight in to this it would be appreciated.

Framework: https://github.com/mongoid/mongoid
Driver: https://github.com/mongoid/moped

undefined method `send_message_with_safe_check' for class `Mongo::Connection

I just added glimpse and glimpse-mongo to my Gemfile, and when I started the app, I got this

NameError: undefined method `send_message_with_safe_check' for class `Mongo::Connection'
~/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/activesupport-3.2.12/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method'
~/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/activesupport-3.2.12/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method_chain'

I saw an issue like this closed, but I guess mongo changed some names again

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.