Sha256: a6aeba63fd6730d35fc714d2b64a8e0c6afa3f4112e1a27b97684adcda2f735e

Contents?: true

Size: 1.04 KB

Versions: 20

Compression:

Stored size: 1.04 KB

Contents

# == New Relic Initialization
# 
# When installed as a gem, you can activate the New Relic agent one of the following ways:
#
# For Rails, add:
#    config.gem 'newrelic_rpm'
# to your initialization sequence.
#
# For merb, do 
#    dependency 'newrelic_rpm'
# in the Merb config/init.rb
#
# For Sinatra, do
#    require 'newrelic_rpm'
# after requiring 'sinatra'.
#
# For other frameworks, or to manage the agent manually, invoke NewRelic::Agent#manual_start
# directly.
#
require 'new_relic/control'

# After verison 2.0 of Rails we can access the configuration directly.
# We need it to add dev mode routes after initialization finished. 
if defined? Rails.configuration
  Rails.configuration.after_initialize do
    NewRelic::Control.instance.init_plugin :config => Rails.configuration
  end
elsif defined? Merb
  module NewRelic
    class MerbBootLoader < Merb::BootLoader
      after Merb::BootLoader::ChooseAdapter

      def self.run
        NewRelic::Control.instance.init_plugin
      end
    end
  end
else
  NewRelic::Control.instance.init_plugin
end

Version data entries

20 entries across 20 versions & 2 rubygems

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