diff --git a/lib/ddtrace/transport/traces.rb b/lib/ddtrace/transport/traces.rb index cca596f3077..c35c1b30cf0 100644 --- a/lib/ddtrace/transport/traces.rb +++ b/lib/ddtrace/transport/traces.rb @@ -101,6 +101,8 @@ def encode_trace(encoder, trace) # Make the trace serializable serializable_trace = SerializableTrace.new(trace) + Datadog.logger.debug { "Flushing trace: #{JSON.dump(serializable_trace)}" } + # Encode the trace encoder.encode(serializable_trace) end