Module: Datadog::Contrib::Resque::Patcher

Includes:
Patcher
Defined in:
lib/ddtrace/contrib/resque/patcher.rb

Overview

Patcher enables patching of ‘resque’ module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.get_option(option) ⇒ Object



23
24
25
# File 'lib/ddtrace/contrib/resque/patcher.rb', line 23

def get_option(option)
  Datadog.configuration[:resque].get_option(option)
end

.patchObject



18
19
20
21
# File 'lib/ddtrace/contrib/resque/patcher.rb', line 18

def patch
  require_relative 'resque_job'
  get_option(:workers).each { |worker| worker.extend(ResqueJob) }
end

.target_versionObject



14
15
16
# File 'lib/ddtrace/contrib/resque/patcher.rb', line 14

def target_version
  Integration.version
end