Module: Datadog::Tracing::Contrib::Que::Patcher

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

Overview

Patcher enables patching of ‘que’ module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.patchObject



19
20
21
# File 'lib/datadog/tracing/contrib/que/patcher.rb', line 19

def patch
  ::Que.job_middleware.push(Que::Tracer.new)
end

.target_versionObject



15
16
17
# File 'lib/datadog/tracing/contrib/que/patcher.rb', line 15

def target_version
  Integration.version
end