Sha256: 00002a8d0935d2995b90268002493c90de9d2dd02ee37a78264bde6ff3d961d0

Contents?: true

Size: 574 Bytes

Versions: 26

Compression:

Stored size: 574 Bytes

Contents

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

LibraryDetection.defer do
  @name = :rails4_view

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

  depends_on do
    !OneApm::Manager.config[:disable_view_instrumentation] &&
      !OneApm::Agent::Instrumentation::ActionViewSubscriber.subscribed?
  end

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

  executes do
    OneApm::Agent::Instrumentation::ActionViewSubscriber.subscribe(/render_.+\.action_view$/)
  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_view.rb
oneapm_rpm-1.3.2.rc1 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.3.1 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.3.1.rc1 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.3.0 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.3.0.rc1 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.2.9 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.2.9.rc1 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.2.8 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.2.8.rc1 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.2.7 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.2.7.rc1 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.2.6 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.2.6.rc1 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.2.5 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.2.5.rc1 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.2.4 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.2.4.rc1 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.2.3 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.2.3.rc2 lib/one_apm/inst/rails4/action_view.rb