Skip to content

Commit e62fdf9

Browse files
committed
Make sure trace flags are parsed properly when extracting traceparent
1 parent 450cce1 commit e62fdf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opentelemetry-api/src/opentelemetry/trace/propagation/tracecontext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def extract(
7979
trace_id=int(trace_id, 16),
8080
span_id=int(span_id, 16),
8181
is_remote=True,
82-
trace_flags=trace.TraceFlags(trace_flags),
82+
trace_flags=trace.TraceFlags(int(trace_flags, 16)),
8383
trace_state=tracestate,
8484
)
8585
return trace.set_span_in_context(

0 commit comments

Comments
 (0)