lib/ddtrace/workers.rb in ddtrace-0.30.1 vs lib/ddtrace/workers.rb in ddtrace-0.31.0
- old
+ new
@@ -53,29 +53,29 @@
@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(
+ Datadog::Logger.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(
+ Datadog::Logger.log.error(
"Error during runtime metrics flush. Cause: #{e} Location: #{e.backtrace.first}"
)
end
# Start the timer execution.
def start
@mutex.synchronize do
return if @run
@run = true
- Tracer.log.debug("Starting thread in the process: #{Process.pid}")
+ Logger.log.debug("Starting thread in the process: #{Process.pid}")
@worker = Thread.new { perform }
end
end
# Closes all available queues and waits for the trace buffer to flush