lib/ddtrace/transport/traces.rb in ddtrace-1.5.2 vs lib/ddtrace/transport/traces.rb in ddtrace-1.6.0
- old
+ new
@@ -78,10 +78,10 @@
def encode_one(trace)
encoded = Encoder.encode_trace(encoder, trace)
if encoded.size > max_size
# This single trace is too large, we can't flush it
- Datadog.logger.debug { "Dropping trace. Payload too large: '#{trace.map(&:to_hash)}'" }
+ Datadog.logger.debug { "Dropping trace. Payload too large: '#{trace.inspect}'" }
Datadog.health_metrics.transport_trace_too_large(1)
return nil
end