Sha256: e79f525893b6f9d08947741f1af9d6b944ca0c35e3ce8b00258988efc2f0ed96

Contents?: true

Size: 599 Bytes

Versions: 13

Compression:

Stored size: 599 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 #{::Rails::VERSION::MAJOR} view instrumentation"
  end

  executes do
    OneApm::Agent::Instrumentation::ActionViewSubscriber.subscribe(/render_.+\.action_view$/)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
oneapm_rpm-1.4.2 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.4.1 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.4.0 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.3.7 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.3.7.rc1 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.3.6 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.3.6.rc1 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.3.5 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.3.5.rc1 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.3.4 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.3.4.rc1 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.3.3 lib/one_apm/inst/rails4/action_view.rb
oneapm_rpm-1.3.3.rc1 lib/one_apm/inst/rails4/action_view.rb