Sha256: 8ed908cf46efecc42a119ea04ccffaff903048060d3f424ba3db990f200cd2c0
Contents?: true
Size: 673 Bytes
Versions: 7
Compression:
Stored size: 673 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' # 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 "http://localhost/metrics" do run NewRelic::Rack::MetricApp.new(options) end map "/" do run NewRelic::Rack::Status.new end
Version data entries
7 entries across 7 versions & 1 rubygems