Sha256: deb40dae23f3d28407537d89b9f1e6ebc5449cb0ed3b56a2c559d30f43d65ab4
Contents?: true
Size: 785 Bytes
Versions: 10
Compression:
Stored size: 785 Bytes
Contents
# Initialization script for the gem. # Add # config.gem 'newrelic_rpm' # to your initialization sequence. # require 'new_relic/config' def log!(message) STDERR.puts "[NewRelic] #{message}" end # START THE AGENT # We install the shim agent unless the tracers are enabled, the plugin # env setting is not false, and the agent started okay. if !NewRelic::Config.instance.tracers_enabled? require 'new_relic/shim_agent' else # 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::Config.instance.start_plugin Rails.configuration end else NewRelic::Config.instance.start_plugin end end
Version data entries
10 entries across 10 versions & 1 rubygems