Module: Datadog::Contrib::ActiveJob::Patcher
- Includes:
- Patcher
- Defined in:
- lib/ddtrace/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
25 26 27 28 29 |
# File 'lib/ddtrace/contrib/active_job/patcher.rb', line 25 def inject_log_correlation ::ActiveSupport.on_load(:active_job) do include LogInjection end end |
.patch ⇒ Object
20 21 22 23 |
# File 'lib/ddtrace/contrib/active_job/patcher.rb', line 20 def patch Events.subscribe! inject_log_correlation if Datadog.configuration[:active_job][:log_injection] end |
.target_version ⇒ Object
16 17 18 |
# File 'lib/ddtrace/contrib/active_job/patcher.rb', line 16 def target_version Integration.version end |