trace ID

An identifier shared by every span and log line belonging to one request, so they can be found together.

In more detail

In W3C Trace Context it is a random 16-byte value, written as 32 hexadecimal characters, and travels between services in the traceparent header. Putting it in log records and error responses lets you jump from a user's report straight to the full trace. It must never be a metric label, because every request has a different one.

Examples

Kafka record header: ('trace-id', b'abc123')
216363698b529b4a97b750923ceb3ffd (32 hexadecimal characters)
The course service writes trace_id into every log line so you can jump from a slow trace to its records.

Related terms

Taught in

References

Certification courses