Interview Prep/Monitoring & Observability/Kubernetes Monitoring, Scale & Cloud

What is AWS X-Ray and how does it relate to OpenTelemetry?

IntermediateConceptKubernetes Monitoring, Scale & Cloud
Answer

X-Ray is AWS's distributed tracing service with a service map, trace analytics and native integration with Lambda, API Gateway, ALB and Step Functions. Its propagation header is:

X-Amzn-Trace-Id: Root=1-5759e988-bd862e3fe1be46a994272793;Parent=53995c3f42cd8ad8;Sampled=1

The Root contains an epoch timestamp, which is why X-Ray trace IDs have a specific format. AWS now steers new instrumentation to OpenTelemetry (ADOT or upstream SDKs) instead of the X-Ray SDKs and daemon, and X-Ray/CloudWatch can ingest OTLP spans. The ADOT Collector's awsxray exporter and the AWS X-Ray propagator (OTEL_PROPAGATORS=tracecontext,baggage,xray) bridge the formats, so a trace from API Gateway can continue into OTel-instrumented services.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Kubernetes Monitoring, Scale & Cloud