Skip to content

Instantly share code, notes, and snippets.

@minhajuddin
Forked from gilles/rpm_extra.rb
Created January 20, 2011 04:13
Show Gist options
  • Select an option

  • Save minhajuddin/787380 to your computer and use it in GitHub Desktop.

Select an option

Save minhajuddin/787380 to your computer and use it in GitHub Desktop.
#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