Skip to content

Instantly share code, notes, and snippets.

@jfernandez
Created April 21, 2010 04:56
Show Gist options
  • Save jfernandez/373436 to your computer and use it in GitHub Desktop.
Save jfernandez/373436 to your computer and use it in GitHub Desktop.
ENV['APP_ROOT'] ||= File.dirname(__FILE__)
$:.unshift "#{ENV['APP_ROOT']}/vendor/plugins/newrelic_rpm/lib"
require 'newrelic_rpm'
require 'new_relic/agent/instrumentation/rack'
module Toto
class Server
include NewRelic::Agent::Instrumentation::Rack
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment