Skip to content

Commit

Permalink
Make sure trace flags are parsed properly when extracting traceparent
Browse files Browse the repository at this point in the history
  • Loading branch information
deejgregor committed Mar 30, 2022
1 parent 450cce1 commit e62fdf9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def extract(
trace_id=int(trace_id, 16),
span_id=int(span_id, 16),
is_remote=True,
trace_flags=trace.TraceFlags(trace_flags),
trace_flags=trace.TraceFlags(int(trace_flags, 16)),
trace_state=tracestate,
)
return trace.set_span_in_context(
Expand Down

0 comments on commit e62fdf9

Please sign in to comment.