module TraceView::Inst::ResqueJob

Public Class Methods

included(klass) click to toggle source
# File lib/traceview/inst/resque.rb, line 127
def self.included(klass)
  ::TraceView::Util.method_alias(klass, :fail, ::Resque::Job)
end

Public Instance Methods

fail_with_traceview(exception) click to toggle source
# File lib/traceview/inst/resque.rb, line 131
def fail_with_traceview(exception)
  if TraceView.tracing?
    TraceView::API.log_exception(:resque, exception)
  end
  fail_without_traceview(exception)
end