Sha256: 9e2c8c256e90ce24fec4ba86f8beaec29364be2ad20def15b6791ff2b813a838

Contents?: true

Size: 517 Bytes

Versions: 2

Compression:

Stored size: 517 Bytes

Contents

require_relative '../patcher'
require_relative '../sidekiq/ext'

module Datadog
  module Tracing
    module Contrib
      module Resque
        # Patcher enables patching of 'resque' module.
        module Patcher
          include Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          def patch
            require_relative 'resque_job'

            ::Resque::Job.prepend(Resque::Job)
          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/resque/patcher.rb
ddtrace-1.10.0 lib/datadog/tracing/contrib/resque/patcher.rb