Module: Datadog::Tracing::Contrib::ActiveJob::Patcher

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

Overview

Patcher enables patching of ‘active_job’ module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.inject_log_correlationObject



27
28
29
30
31
# File 'lib/datadog/tracing/contrib/active_job/patcher.rb', line 27

def inject_log_correlation
  ::ActiveSupport.on_load(:active_job) do
    include LogInjection
  end
end

.patchObject



22
23
24
25
# File 'lib/datadog/tracing/contrib/active_job/patcher.rb', line 22

def patch
  Events.subscribe!
  inject_log_correlation
end

.target_versionObject



18
19
20
# File 'lib/datadog/tracing/contrib/active_job/patcher.rb', line 18

def target_version
  Integration.version
end