Sha256: 087ab90543f39d8c2387d5391f9720caea7f053e7009a538254df0cfe71ffe35

Contents?: true

Size: 642 Bytes

Versions: 21

Compression:

Stored size: 642 Bytes

Contents

# Instrumented WorkerBase

module RestFtpDaemon
  class Worker < BmcDaemonLib::WorkerBase
    include ::NewRelic::Agent::Instrumentation::ControllerInstrumentation

    # NewRelic instrumentation
    add_transaction_tracer :worker_init,       category: :task
    add_transaction_tracer :worker_after,      category: :task
    add_transaction_tracer :worker_process,    category: :task

  protected

    def log_context
      {
      wid: Thread.current.thread_variable_get(:wid),
      jid: Thread.current.thread_variable_get(:jid),
      }
    end

    def disabled? value
      value.nil? || value === false || value == 0
    end

  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rest-ftp-daemon-1.1.1 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.1.0 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.0.15 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.0.14 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.0.13 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.0.12 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.0.11 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.0.10 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.0.9 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.0.8 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.0.7 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.0.6 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.0.5 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.0.4 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.0.3 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.0.2 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-1.0.1 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-0.502.2 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-0.502.1 lib/rest-ftp-daemon/workers/worker.rb
rest-ftp-daemon-0.502.0 lib/rest-ftp-daemon/workers/worker.rb