ExitAWS X-Ray: collecting distributed traces with OpenTelemetry1 / 10
Explanation

Two paths: requests and trace data

How X-Ray assembles OpenTelemetry spans into complete request traces, including trace-context continuity, sampling decisions, and X-Ray export requirements. · advanced

X-Ray assembles traces from reported data; it does not intercept every application call. In this architecture, an instrumented frontend calls an instrumented backend. Each independently sends recorded spans to one shared collector.

The request path carries trace context between applications. The export path carries completed spans through an OTLP receiver and an X-Ray exporter. This design has no direct application-to-X-Ray export and no collector-to-application request forwarding.

The required destination is X-Ray trace assembly, not CloudWatch metric ingestion or Amazon Managed Service for Prometheus. Likewise, Data Firehose delivery and AWS Tools and SDKs are not substitutes for a running collector with an awsxray exporter.

HTTP + contextOTLP spansOTLP spansSigned segment documents
Amazon Elastic Container Service (Amazon ECS)Frontend: OpenTelemetry instrumentation
Amazon EC2Backend: OpenTelemetry instrumentation
AWS Distro for OpenTelemetryCollector: OTLP receiver → awsxray exporter
AWS X-RayTrace assembly and storage

1 / 5 The frontend's OpenTelemetry instrumentation creates spans for the work it observes.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.