W3C Trace Context traceparent Generator

 

Sets the trace-flags field to 01, marking the request as sampled (recorded).

Spec-shaped traceparent header generated locally in your browser with the Web Crypto API. Not tied to any real trace.

traceparent headers for tracing and observability fixtures

Generate a spec-correct W3C Trace Context traceparent header value — the version-00 header that propagates distributed-tracing context across services. Each value is four dash-separated fields: the fixed 00 version, a 32-character hex trace-id, a 16-character hex parent-id (span-id), and the 2-character trace-flags. Handy for testing OpenTelemetry instrumentation, mocking log and APM pipelines, seeding integration tests, and writing observability documentation.

How the value is built

The trace-id and span-id are generated from cryptographically random bytes and rendered as lowercase hexadecimal, with the all-zero value (which the spec forbids) regenerated. Toggle Sampled to flip the trailing trace-flags between 01 (sampled) and 00 (not sampled). These are realistic development fixtures, not identifiers from any real trace, and do not guarantee uniqueness.