Troubleshooting and Optimization

Two services export OpenTelemetry spans to AWS X-Ray, but calls between them appear as separate traces. They communicate through a custom HTTP client. What should the developer implement?

Show the answer

Correct answerC. Propagate trace context through the HTTP headers

AWhy not this: Duration metrics describe aggregate performance rather than relationships between spans.

BWhy not this: Service names identify trace participants; matching names does not connect spans across requests.

CWhy this is right: Propagated trace context lets the receiving service associate its spans with the caller's trace.

DWhy not this: Matching sampling rates does not transmit trace identifiers or parent span identifiers.

The client must inject trace context into HTTP headers, and the receiving service must extract it to create correctly related spans. Matching sampling rates affects trace collection but does not establish parent-child relationships.