Skip to content

Commit

Permalink
edge case 3: traceflags should have 8 bits and be represented by 2 di…
Browse files Browse the repository at this point in the history
…gits
  • Loading branch information
mabdinur committed Dec 15, 2022
1 parent ae1e73e commit adc4f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/propagation/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def _get_traceparent_values(tp):
if version != "00":
log.warning("unsupported traceparent version:%r, still attempting to parse", version)

if len(trace_id_hex) == 32 and len(span_id_hex) == 16 and len(trace_flags_hex) >= 2:
if len(trace_id_hex) == 32 and len(span_id_hex) == 16 and len(trace_flags_hex) == 2:
trace_id = _hex_id_to_dd_id(trace_id_hex)
span_id = _hex_id_to_dd_id(span_id_hex)

Expand Down

0 comments on commit adc4f80

Please sign in to comment.