Sha256: 81c169a25ca16e1a94311593689b1ffbdd8ab1510b6533f593ff14f391cac358

Contents?: true

Size: 976 Bytes

Versions: 10

Compression:

Stored size: 976 Bytes

Contents

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

# == New Relic Initialization
#
# When installed as a gem, you can activate the New Relic agent one of the following ways:
#
# For applications using Bundler, add this to the Gemfile:
#    gem 'newrelic_rpm'
#
# You will also need to install the newrelic.yml configuration file
#
# For applications not using Bundler, and for other installation information, visit:
# https://docs.newrelic.com/docs/agents/ruby-agent/installation/install-new-relic-ruby-agent/
#

require 'new_relic/control'

if defined?(Rails::VERSION)
  module NewRelic
    class Railtie < Rails::Railtie
      initializer "newrelic_rpm.start_plugin", before: :load_config_initializers do |app|
        NewRelic::Control.instance.init_plugin(config: app.config)
      end
    end
  end
else
  NewRelic::Control.instance.init_plugin
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
newrelic_rpm-8.9.0 lib/newrelic_rpm.rb
newrelic_rpm-8.8.0 lib/newrelic_rpm.rb
newrelic_rpm-8.7.0 lib/newrelic_rpm.rb
newrelic_rpm-8.6.0 lib/newrelic_rpm.rb
newrelic_rpm-8.5.0 lib/newrelic_rpm.rb
newrelic_rpm-8.4.0 lib/newrelic_rpm.rb
newrelic_rpm-8.3.0 lib/newrelic_rpm.rb
newrelic_rpm-8.2.0 lib/newrelic_rpm.rb
newrelic_rpm-8.1.0 lib/newrelic_rpm.rb
newrelic_rpm-8.0.0 lib/newrelic_rpm.rb