OpenTelemetry Certified Associate (OTCA) free question 10 / 10 · Domain 4: Maintaining and Debugging Observability Pipelines
A downstream service receives the header traceparent: 00-a0892f3577b34da6a3ce929d0e0e4736-f03067aa0ba902b7-01. Which value identifies the span that becomes the parent of the span the service creates?
- a0892f3577b34da6a3ce929d0e0e4736, the trace-id field that names the trace
- f03067aa0ba902b7, the parent-id field, which names the caller's span
- 01, the trace-flags field at the end of the header
- 00, the version field of the header format
Show the answer and explanation
Answer: B
Why this is correct
The traceparent header has the form <version>-<trace-id>-<parent-id>-<trace-flags>. In the example, 00 is the version, a0892f3577b34da6a3ce929d0e0e4736 is the trace ID, f03067aa0ba902b7 is the parent ID and 01 holds the trace flags. The downstream service extracts this context, so the new span joins the same trace with the span named by the parent ID as its parent.
Why the other options are wrong
"a0892f3577b34da6a3ce929d0e0e4736, the trace-id field that names the trace" … The trace ID identifies the whole trace, which the new span joins. It is not the parent span.
"00, the version field of the header format" … The first field is the version of the header format. It does not identify a span.
"01, the trace-flags field at the end of the header" … The last field holds the trace flags. It does not identify a span either.
Key points
traceparent: version, trace-id, parent-id, trace-flags. The parent-id names the caller's span.