lib/ddtrace/workers.rb in ddtrace-0.24.0 vs lib/ddtrace/workers.rb in ddtrace-0.25.0
- old
+ new
@@ -51,17 +51,21 @@
@trace_task.call(traces, @transport) unless @trace_task.nil?
rescue StandardError => e
# ensures that the thread will not die because of an exception.
# TODO[manu]: findout the reason and reschedule the send if it's not
# a fatal exception
- Datadog::Tracer.log.error("Error during traces flush: dropped #{traces.length} items. Cause: #{e}")
+ Datadog::Tracer.log.error(
+ "Error during traces flush: dropped #{traces.length} items. Cause: #{e} Location: #{e.backtrace.first}"
+ )
end
end
def callback_runtime_metrics
@runtime_metrics_task.call unless @runtime_metrics_task.nil?
rescue StandardError => e
- Datadog::Tracer.log.error("Error during runtime metrics flush. Cause: #{e}")
+ Datadog::Tracer.log.error(
+ "Error during runtime metrics flush. Cause: #{e} Location: #{e.backtrace.first}"
+ )
end
# Start the timer execution.
def start
@mutex.synchronize do