Created
March 9, 2012 18:19
-
-
Save gnarg/2007867 to your computer and use it in GitHub Desktop.
Minimal instrumentation example
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
require "newrelic_noop/version" | |
require 'new_relic/agent/method_tracer' | |
module NewrelicNoop; end | |
Object.class_eval do | |
include NewRelic::Agent::MethodTracer | |
add_method_tracer :puts, 'Noop/puts' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment