Sha256: 0419c2b2ce0681c45a519f7418761fcc3fb9d933622c52199712d9c9af3f68dd
Contents?: true
Size: 838 Bytes
Versions: 8
Compression:
Stored size: 838 Bytes
Contents
# This is so that we don't detect a dispatcher like mongrel and think we are # monitoring it. ENV['NEWRELIC_DISPATCHER'] = 'none' $LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), '..','..')) require 'new_relic/rack_app' # Valid options which may be present in this binding: # :license_key optional license key override # :app_name optional name of app # :logging optional, false to omit request logging to stdout # use Rack::CommonLogger unless options[:logging] == false # use Rack::ShowExceptions # use Rack::Reloader if ENV['RACK_ENV'] == 'development' puts "This Rack Metric Collection system is deprecated - it will be removed in the next version of the Ruby Agent" map "/newrelic/record_value" do run NewRelic::Rack::MetricApp.new(options) end map "/" do run NewRelic::Rack::Status.new end
Version data entries
8 entries across 8 versions & 2 rubygems