module Datadog::Contrib::Resque::Patcher
Patcher
enables patching of 'resque' module.
Public Instance Methods
patch()
click to toggle source
# File lib/ddtrace/contrib/resque/patcher.rb, line 19 def patch require_relative 'resque_job' ::Resque::Job.prepend(Resque::Job) workers = Datadog.configuration[:resque][:workers] || [] workers.each { |worker| worker.extend(ResqueJob) } end
target_version()
click to toggle source
# File lib/ddtrace/contrib/resque/patcher.rb, line 15 def target_version Integration.version end