Sha256: b21f8135d7ec611168a005dd16f05cee19a0d1e7927617dc23db4fb665d86780

Contents?: true

Size: 661 Bytes

Versions: 21

Compression:

Stored size: 661 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

options ||= {}

use Rack::CommonLogger unless options[:logging] == false
use Rack::ShowExceptions
map "/" do
  run NewRelic::Rack::Status.new
end
map "/metrics" do
  run NewRelic::Rack::MetricApp.new(options)
end


Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
onyx_newrelic_rpm-2.12.5 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.12.3 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.12.2 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.12.2.beta2 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.12.2.beta lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.12.1 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.12.1.alpha lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.12.0 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.11.3 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.11.2 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.11.2.beta2 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.11.2.beta lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.11.1 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.11.0.beta2 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.11.0.beta lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.10.8 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.10.6 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.10.5 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.10.4 lib/new_relic/rack/mongrel_rpm.ru
newrelic_rpm-2.10.3 lib/new_relic/rack/mongrel_rpm.ru