Sha256: e8ba9a6a57a6f65b71609c30f62f1d070c391ce763a9783db6079bb3d80a3eb6
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 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 other frameworks, or to manage the agent manually, invoke NewRelic::Agent#manual_start # directly. # require 'new_relic/control' begin require 'rpm_contrib' rescue LoadError # Contrib gem not being used. end def log!(message) STDERR.puts "[NewRelic] #{message}" end # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
factorylabs-newrelic_rpm-2.10.2.2 | lib/newrelic_rpm.rb |