Sha256: e1a12bcb47b3b6280b875b10cc32880361c5d8e9218d23f60e506195398eea4c

Contents?: true

Size: 634 Bytes

Versions: 26

Compression:

Stored size: 634 Bytes

Contents

require 'ddtrace/contrib/patcher'
require 'ddtrace/ext/app_types'
require 'ddtrace/contrib/sidekiq/ext'

module Datadog
  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'
          get_option(:workers).each { |worker| worker.extend(ResqueJob) }
        end

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

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
ddtrace-0.47.0 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.46.0 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.45.0 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.44.0 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.43.0 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.42.0 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.41.0 lib/ddtrace/contrib/resque/patcher.rb
ls-trace-0.2.0 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.40.0 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.39.0 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.38.0 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.37.0 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.36.0 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.35.2 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.35.1 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.35.0 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.34.2 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.34.1 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.34.0 lib/ddtrace/contrib/resque/patcher.rb
ddtrace-0.33.1 lib/ddtrace/contrib/resque/patcher.rb