Operational Excellence and Automation

Two services export OpenTelemetry spans to the same collector, but each downstream HTTP call appears as a separate trace. The custom HTTP client does not forward tracing headers; what should the architect change?

Show the answer

Correct answerB. Inject and extract trace context across the HTTP boundary.

AWhy not this: Retention changes how long traces remain available, not whether downstream spans belong to the same trace.

BWhy this is right: Injecting and extracting trace context lets downstream spans continue the originating request's trace.

CWhy not this: Batch size changes export efficiency, not the parent-child relationships between spans.

DWhy not this: A shared service name does not join traces and would obscure the distinction between the services.

Trace context propagation carries the trace identifier and parent relationship across service boundaries. A shared collector or service name does not establish those relationships; resource attributes identify services rather than connect individual requests.