Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added new relic instrumentation file that can be required.

  • Loading branch information...
commit 680cf2f55e599656f0bb321b908f5220abef77d7 1 parent e199b33
@jnunemaker jnunemaker authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/plucky/new_relic.rb
View
9 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
Please sign in to comment.
Something went wrong with that request. Please try again.