0.0
No commit activity in last 3 years
No release in over 3 years
Community-contributed instrumentation for Mongo gem and Mongoid 2.x for NewRelic.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.4
 Project Readme

The newrelic_mongo gem

The newrelic_mongo gem contains NewRelic RPM instrumentation for the mongo-ruby-driver gem, contributed by the community of RPM users. It requires the RPM Agent to run.

The gem was forked from the deprecated rpm_contrib gem and is maintained by Raphael Crawford-Marks.

If you are using Mongoid 3 and/or Moped, please use the newrelic_moped gem:

https://github.com/stevebartholomew/newrelic_moped

Getting Started

Add the newrelic_mongo gem to your Gemfile.

Instrumentation

Mongo Ruby Driver

For the mongo ruby driver, the following instrumentation is added:

Database/COLLECTION_NAME/ACTION

Where ACTION is Find, Refresh, Update, Close, etc..

Mongoid 2.x

For Mongoid 2.x, the following instrumentation is added:

Mongoid/CLASSNAME/OPERATION

Where OPERATION is any operation in Mongoid::Collections::Operations::ALL (except for << and []).

Contributing

I welcome bug fixes and new features. Fork the repo, make your changes, and then submit a pull request. Thanks in advance!