Skip to content

Commit

Permalink
Debug:Print trace as it is about to be flushed (#2290)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc authored Oct 3, 2022
1 parent 7121274 commit f5984e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ddtrace/transport/traces.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5984e8

Please sign in to comment.