module Datadog::Contrib::Resque::Patcher

Patcher enables patching of 'resque' module.

Public Instance Methods

get_option(option) click to toggle source
# File lib/ddtrace/contrib/resque/patcher.rb, line 23
def get_option(option)
  Datadog.configuration[:resque].get_option(option)
end
patch() click to toggle source
# File lib/ddtrace/contrib/resque/patcher.rb, line 18
def patch
  require_relative 'resque_job'
  get_option(:workers).each { |worker| worker.extend(ResqueJob) }
end
target_version() click to toggle source
# File lib/ddtrace/contrib/resque/patcher.rb, line 14
def target_version
  Integration.version
end