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

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

Overview

Patcher enables patching of ‘resque’ module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.patchObject



20
21
22
23
24
# File 'lib/datadog/tracing/contrib/resque/patcher.rb', line 20

def patch
  require_relative 'resque_job'

  ::Resque::Job.prepend(Resque::Job)
end

.target_versionObject



16
17
18
# File 'lib/datadog/tracing/contrib/resque/patcher.rb', line 16

def target_version
  Integration.version
end