W3C Trace Context tracestate Generator
tracestate headers for tracing and observability fixtures
Generate a spec-shaped W3C Trace Context tracestate header value — the companion header to traceparent that carries vendor-specific trace context across services. Each value is a comma-separated list of key=value members (for example rojo=00f067aa0ba902b7,congo=t61rcWkgMzE), where each member records how a particular vendor participated in the trace. Handy for testing OpenTelemetry instrumentation, mocking distributed-tracing and APM pipelines, seeding integration tests, and writing observability documentation.
How the value is built
The generator picks one to four distinct vendor keys and pairs each with a short, cryptographically random token drawn from the spec's allowed printable-ASCII range (excluding the comma and equals separators). Keys never repeat, members are joined with commas, and the total stays within the 512-character spec budget. These are realistic development fixtures, not identifiers from any real trace, and do not guarantee uniqueness.