Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdinur authored Jun 12, 2024
1 parent 3d13ada commit 57bf24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datadog/opentelemetry/sdk/propagator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def extract(

# Converts the {Numeric} Datadog id object to OpenTelemetry's byte array format.
trace_id = [format('%032x', digest.trace_id)].pack('H32')
span_id = [format('%016x', digest.trace_id)].pack('H16')
span_id = [format('%016x', digest.span_id)].pack('H16')

if digest.trace_state || digest.trace_flags
trace_flags = ::OpenTelemetry::Trace::TraceFlags.from_byte(digest.trace_flags)
Expand Down

0 comments on commit 57bf24d

Please sign in to comment.