traceparent Generator / Parser

Generate a W3C Trace Context traceparent header, or paste one to validate every field, plus a tracestate check.

Generate

Parse one

ValidSampled — downstream will report
Version00
trace-id4bf92f3577b34da6a3ce949b7a0b3e0f
span-id00f067aa0ba902b7
Flags01

tracestate

Comma-separated key/value pairs carrying vendor data, e.g. congo=t61rcWkgMzE

0 members, valid

A traceparent has four hyphen-separated fields: a two-digit version, a 32-digit trace-id, a 16-digit span-id and two flag digits.

It must be lowercase hex. Uppercase is treated as a different trace and many collectors drop the whole header.

The last two digits are flags, where 01 means sampled. With 00 downstream still propagates the context but does not report — check this bit first when a trace goes missing.

Comments

Sign in to join the discussion

No comments yet — be the first to say something