Module: Instana::Instrumentation::ResqueJob
- Defined in:
- lib/instana/instrumentation/resque.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
86 87 88 |
# File 'lib/instana/instrumentation/resque.rb', line 86 def self.included(klass) ::Instana::Util.method_alias(klass, :fail) end |
Instance Method Details
#fail_with_instana(exception) ⇒ Object
90 91 92 93 94 95 96 97 98 99 |
# File 'lib/instana/instrumentation/resque.rb', line 90 def fail_with_instana(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.}" if Instana::Config[:verbose] ensure fail_without_instana(exception) end |