Skill 5.3.1

Implement observability by collecting metrics, logs, and distributed tracing by using standardized instrumentation (for example, by using Amazon CloudWatch, AWS X-Ray, AWS Distro for OpenTelemetry).

Key Concepts

Metrics: CloudWatch (with the agent for memory/disk), embedded metric format, Container Insights (with Prometheus metrics scraped by the CloudWatch agent). Logs: CloudWatch Logs with retention, Logs Insights, subscription filters to central accounts or OpenSearch. Traces: X-Ray and CloudWatch Application Signals (SLOs and service maps). Dashboards: CloudWatch dashboards.

Use cross-account observability so a monitoring account sees metrics, logs and traces from source accounts; define SLOs and alert on symptoms (latency, errors) rather than causes.

AWS Distro for OpenTelemetry (ADOT) is AWS's supported distribution of OpenTelemetry: vendor-neutral SDKs, auto-instrumentation agents and a collector that send metrics to CloudWatch and traces to X-Ray (which accepts OpenTelemetry data), or to other back ends. The X-Ray SDKs and daemon have been in maintenance mode since February 2026, so new instrumentation uses OpenTelemetry. Traces carry a trace ID through every hop, so one slow request can be followed across API Gateway, Lambda, containers and databases, and the CloudWatch agent and Application Signals use the same standard.