Sha256: 8e123fa73017723c14a6c03ddc4f6e5632222909bc0f96f613902e04b4aa3ba4
Contents?: true
Size: 722 Bytes
Versions: 29
Compression:
Stored size: 722 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' map "/newrelic/record_value" do run NewRelic::Rack::MetricApp.new(options) end map "/" do run NewRelic::Rack::Status.new end
Version data entries
29 entries across 29 versions & 2 rubygems