Created
January 19, 2011 17:13
-
-
Save gilles/786462 to your computer and use it in GitHub Desktop.
Trace extra methods in rpm, add the file as a rails initializer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#trace mongo in RPM | |
Mongo::Collection.class_eval do | |
include NewRelic::Agent::MethodTracer | |
add_method_tracer :find | |
add_method_tracer :find_one | |
add_method_tracer :find_and_modify | |
add_method_tracer :update | |
add_method_tracer :insert | |
add_method_tracer :save | |
add_method_tracer :remove | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment