Skip to content

Instantly share code, notes, and snippets.

@gnarg
Created March 9, 2012 18:19
Show Gist options
  • Save gnarg/2007867 to your computer and use it in GitHub Desktop.
Save gnarg/2007867 to your computer and use it in GitHub Desktop.
Minimal instrumentation example
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