Skip to content

Commit

Permalink
span and trace ids need to be stringified
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Nov 13, 2024
1 parent c35a76a commit 5408cbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/datadog/di/probe_notification_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ def build_snapshot(probe, rv: nil, snapshot: nil, path: nil,
version: 2,
},
# TODO add tests that the trace/span id is correctly propagated
"dd.trace_id": Datadog::Tracing.active_trace&.id,
"dd.span_id": Datadog::Tracing.active_span&.id,
"dd.trace_id": Datadog::Tracing.active_trace&.id&.to_s,
"dd.span_id": Datadog::Tracing.active_span&.id&.to_s,
ddsource: 'dd_debugger',
message: probe.template && evaluate_template(probe.template,
duration: duration ? duration * 1000 : nil),
Expand Down

0 comments on commit 5408cbb

Please sign in to comment.