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
Class Method Details
.inject_log_correlation ⇒ Object
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 |
.patch ⇒ Object
22 23 24 25 |
# File 'lib/datadog/tracing/contrib/active_job/patcher.rb', line 22 def patch Events.subscribe! inject_log_correlation end |
.target_version ⇒ Object
18 19 20 |
# File 'lib/datadog/tracing/contrib/active_job/patcher.rb', line 18 def target_version Integration.version end |