Sha256: 3bda4a5d2cf996bc6809e012402bdcd648cd36076b4cb78a4ad1ff49effa3f9c

Contents?: true

Size: 526 Bytes

Versions: 39

Compression:

Stored size: 526 Bytes

Contents

# encoding: utf-8

LibraryDetection.defer do
  named :event_machine_standalone

  depends_on do
    OneApm::Manager.config[:event_machine_standalone] && defined?(::EventMachine)
  end

  executes do
    OneApm::Manager.logger.info 'Installing EventMachine Standalone Mode instrumentation'

    module EventMachine

      PeriodicTimer.class_eval do
        include OneApm::Agent::Instrumentation::TransactionBase

        add_transaction_tracer "fire", :category => 'OtherTransaction/Background'
      end

    end

  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
oneapm_rpm-1.4.2 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.4.1 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.4.0 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.7 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.7.rc1 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.6 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.6.rc1 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.5 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.5.rc1 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.4 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.4.rc1 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.3 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.3.rc1 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.2 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.2.rc1 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.1 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.1.rc1 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.0 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.3.0.rc1 lib/one_apm/inst/background_job/event_machine_standalone.rb
oneapm_rpm-1.2.9 lib/one_apm/inst/background_job/event_machine_standalone.rb