Sha256: a007444fb1a2009b85bec6284afdab4d7335a0fcefcda02c09cbcf9886248e2b

Contents?: true

Size: 859 Bytes

Versions: 22

Compression:

Stored size: 859 Bytes

Contents

# frozen_string_literal: true

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

22 entries across 22 versions & 1 rubygems

Version Path
ddtrace-1.23.3 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.23.2 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.23.1 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.22.0 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.21.1 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.21.0 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.20.0 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.19.0 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.18.0 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.17.0 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.16.2 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.16.1 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.16.0 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.15.0 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.14.0 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.13.1 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.13.0 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.12.1 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.12.0 lib/datadog/tracing/contrib/qless/patcher.rb
ddtrace-1.11.1 lib/datadog/tracing/contrib/qless/patcher.rb