Sha256: 5a48fa5797ed8c712f1f8f57d2910dec0e3c01e954ed2d0b4cb591e0e18cb843

Contents?: true

Size: 451 Bytes

Versions: 5

Compression:

Stored size: 451 Bytes

Contents

# typed: false
# frozen_string_literal: true

require 'ddtrace/contrib/que/tracer'

module Datadog
  module Contrib
    module Que
      # Patcher enables patching of 'que' module.
      module Patcher
        include Datadog::Contrib::Patcher

        module_function

        def target_version
          Integration.version
        end

        def patch
          ::Que.job_middleware.push(Que::Tracer.new)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.54.2 lib/ddtrace/contrib/que/patcher.rb
ddtrace-0.54.1 lib/ddtrace/contrib/que/patcher.rb
ddtrace-0.54.0 lib/ddtrace/contrib/que/patcher.rb
ddtrace-0.53.0 lib/ddtrace/contrib/que/patcher.rb
ddtrace-0.52.0 lib/ddtrace/contrib/que/patcher.rb