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

Version Path
ghazel-newrelic_rpm-3.1.0.1 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-3.1.0 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-3.1.0.beta5 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-3.1.0.beta4 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-3.1.0.djlogging2 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-3.1.0.djlogging lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-3.1.0.beta3 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-3.1.0.beta2 lib/new_relic/rack/mongrel_rpm.ru