Module: Datadog::Tracing::Contrib::Qless::Patcher
- Includes:
- Patcher
- Defined in:
- lib/datadog/tracing/contrib/qless/patcher.rb
Overview
Patcher enables patching of ‘qless’ module.
Class Method Summary collapse
Methods included from Patcher
Class Method Details
.get_option(option) ⇒ Object
29 30 31 |
# File 'lib/datadog/tracing/contrib/qless/patcher.rb', line 29 def get_option(option) Datadog.configuration.tracing[:qless].get_option(option) end |
.patch ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/datadog/tracing/contrib/qless/patcher.rb', line 19 def patch require_relative 'qless_job' require_relative 'tracer_cleaner' # Instrument all Qless Workers # These are executed in inverse order of listing here ::Qless::Workers::BaseWorker.include(QlessJob) ::Qless::Workers::BaseWorker.include(TracerCleaner) end |
.target_version ⇒ Object
15 16 17 |
# File 'lib/datadog/tracing/contrib/qless/patcher.rb', line 15 def target_version Integration.version end |