Module: Instana::Instrumentation::ResqueJob

Defined in:
lib/instana/instrumentation/resque.rb

Instance Method Summary collapse

Instance Method Details

#fail(exception) ⇒ Object



95
96
97
98
99
100
101
102
103
104
# File 'lib/instana/instrumentation/resque.rb', line 95

def fail(exception)
  if Instana.tracer.tracing?
    ::Instana.tracer.log_info(:'resque-worker' => { :error => "#{exception.class}: #{exception}"})
    ::Instana.tracer.log_error(exception)
  end
rescue Exception => e
  ::Instana.logger.debug { "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}" } if Instana::Config[:verbose]
ensure
  super(exception)
end