Permalink
Browse files

Added new relic instrumentation file that can be required.

  • Loading branch information...
1 parent e199b33 commit 680cf2f55e599656f0bb321b908f5220abef77d7 @jnunemaker jnunemaker committed May 28, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/plucky/new_relic.rb
@@ -0,0 +1,9 @@
+if defined?(NewRelic)
+ Plucky::Query.class_eval do
+ include NewRelic::Agent::MethodTracer
+
+ Plucky::Methods.each do |method_name|
+ add_method_tracer(method_name.to_sym)
+ end
+ end
+end

0 comments on commit 680cf2f

Please sign in to comment.