lib/instana/instrumentation/resque.rb in instana-1.9.7 vs lib/instana/instrumentation/resque.rb in instana-1.10.0.slimfast

- old
+ new

@@ -15,11 +15,11 @@ begin kvs[:job] = klass.to_s kvs[:queue] = klass.instance_variable_get(:@queue) rescue => e - Instana.logger.debug "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}" + Instana.logger.debug { "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}" } end { :'resque-client' => kvs } end @@ -75,11 +75,11 @@ kvs[:service] = ENV['INSTANA_SERVICE_NAME'] end kvs[:'resque-worker'][:job] = job.payload['class'].to_s kvs[:'resque-worker'][:queue] = job.queue rescue => e - ::Instana.logger.debug "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}" if Instana::Config[:verbose] + ::Instana.logger.debug { "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}" } if Instana::Config[:verbose] end Instana.tracer.start_or_continue_trace(:'resque-worker', kvs) do perform_without_instana(job) end @@ -95,10 +95,10 @@ 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] + ::Instana.logger.debug { "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}" } if Instana::Config[:verbose] ensure fail_without_instana(exception) end end end