Sha256: 5fd2710a9cf62e4398fc0b994618b5083585a817e0e975c25b2eb847bc086324

Contents?: true

Size: 655 Bytes

Versions: 26

Compression:

Stored size: 655 Bytes

Contents

# encoding: utf-8
require 'one_apm/inst/rails4/action_controller_subscriber'


LibraryDetection.defer do
  @name = :rails4_controller

  depends_on do
    defined?(::Rails) && ::Rails::VERSION::MAJOR.to_i == 4
  end

  depends_on do
    defined?(ActionController) && defined?(ActionController::Base)
  end

  executes do
    OneApm::Manager.logger.info 'Installing Rails 4 Controller instrumentation'
  end

  executes do
    class ActionController::Base
      include OneApm::Agent::Instrumentation::TransactionBase
    end
    OneApm::Agent::Instrumentation::ActionControllerSubscriber \
      .subscribe(/^process_action.action_controller$/)
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
oneapm_rpm-1.3.2 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.3.2.rc1 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.3.1 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.3.1.rc1 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.3.0 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.3.0.rc1 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.2.9 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.2.9.rc1 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.2.8 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.2.8.rc1 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.2.7 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.2.7.rc1 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.2.6 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.2.6.rc1 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.2.5 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.2.5.rc1 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.2.4 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.2.4.rc1 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.2.3 lib/one_apm/inst/rails4/action_controller.rb
oneapm_rpm-1.2.3.rc2 lib/one_apm/inst/rails4/action_controller.rb