Sha256: e1af79b2a8040ed9065e923e47ea916ee83b2a13ff0af566ae7cb4c8d0481043

Contents?: true

Size: 828 Bytes

Versions: 2

Compression:

Stored size: 828 Bytes

Contents

require_relative '../patcher'

module Datadog
  module Tracing
    module Contrib
      module Qless
        # Patcher enables patching of 'qless' module.
        module Patcher
          include Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          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

          def get_option(option)
            Datadog.configuration.tracing[:qless].get_option(option)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ddtrace-1.10.1 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.10.0 lib/datadog/tracing/contrib/qless/patcher.rb