Sha256: 4b82b2fc13ac31459b7edd65671c02d65c669390f3a8e2d96aa023fd51ad74b1

Contents?: true

Size: 1012 Bytes

Versions: 19

Compression:

Stored size: 1012 Bytes

Contents

# This is the initialization for the New Relic Ruby Agent when used as
# a plugin
require 'new_relic/control'

# If you are having problems seeing data, be sure and check the
# newrelic_agent.log files in the log diretory of your application
#
# If you can't find any log files and you don't see anything in your
# application log files, try uncommenting the two lines at the
# bottom of this file to verify the plugin is being loaded,
# then send the output to support@newrelic.com if you are unable to
# resolve the issue.

# Initializer for the NewRelic Ruby Agent

# After verison 2.0 of Rails we can access the configuration directly.
# We need it to add dev mode routes after initialization finished.

begin

  current_config = if defined?(config)
    config
  elsif defined?(Rails.configuration)
    Rails.configuration
  end

  NewRelic::Control.instance.init_plugin :config => current_config

rescue => e
  ::NewRelic::Agent.logger.error "Error initializing New Relic plugin. Agent is disabled.", e
end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
wd_newrelic_rpm-3.5.8 init.rb
sundawg_newrelic_rpm-3.5.8.2 init.rb
sundawg_newrelic_rpm-3.5.8.1 init.rb
newrelic_rpm-3.5.8.72 init.rb
newrelic_rpm-3.5.8.70 init.rb
newrelic_rpm-3.5.8.64.beta init.rb
newrelic_rpm-3.5.7.59 init.rb
newrelic_rpm-3.5.7.59.beta init.rb
newrelic_rpm-3.5.7.58.beta init.rb
wd_newrelic_rpm-3.5.6 init.rb
newrelic_rpm-3.5.7.57.beta init.rb
newrelic_rpm-3.5.6.55 init.rb
newrelic_rpm-3.5.6.48.beta init.rb
newrelic_rpm-3.5.6.46.beta init.rb
newrelic_rpm-3.5.6.42.beta init.rb
newrelic_rpm-3.5.5.39.beta init.rb
wd_newrelic_rpm-3.5.5 init.rb
newrelic_rpm-3.5.5.38 init.rb
newrelic_rpm-3.5.5.540.dev init.rb