Module: Datadog::Tracing::Contrib::Resque::Job

Defined in:
lib/datadog/tracing/contrib/resque/resque_job.rb

Overview

Automatically configures jobs with ResqueJob plugin.

Instance Method Summary collapse

Instance Method Details

#performObject



15
16
17
18
19
20
# File 'lib/datadog/tracing/contrib/resque/resque_job.rb', line 15

def perform
  job = payload_class
  job.extend(Contrib::Resque::ResqueJob) unless job.is_a?(Contrib::Resque::ResqueJob)
ensure
  super
end