Sha256: 3ef0717ee314012ddbd6cbe8bced1807c0babc2fb3fe0922b48fee421929b643

Contents?: true

Size: 1019 Bytes

Versions: 73

Compression:

Stored size: 1019 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

# 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 directory of your application
#
# If you can't find any log files and you don't see anything in your
# application log files please visit support.newrelic.com.

# 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

73 entries across 73 versions & 2 rubygems

Version Path
newrelic_rpm-6.11.0.365 init.rb
newrelic_rpm-6.10.0.364 init.rb
newrelic_rpm-6.9.0.363 init.rb
newrelic_rpm-6.8.0.360 init.rb
newrelic_rpm-6.7.0.359 init.rb
newrelic_rpm-6.6.0.358 init.rb
newrelic_rpm-6.5.0.357 init.rb
newrelic_rpm-6.4.0.356 init.rb
newrelic_rpm-6.3.0.355 init.rb
newrelic_rpm-6.2.0.354 init.rb
newrelic_rpm-6.1.0.352 init.rb
newrelic_rpm-6.0.0.351 init.rb
newrelic_rpm-5.7.0.350 init.rb
newrelic_rpm-5.6.0.349 init.rb
newrelic_rpm-5.5.0.348 init.rb
newrelic_rpm-5.4.0.347 init.rb
newrelic_rpm-5.3.0.346 init.rb
newrelic_rpm-5.2.0.345 init.rb
newrelic_rpm-5.1.0.344 init.rb
newrelic_rpm-5.0.0.342 init.rb