Observability
Amazon CloudWatch + AWS X-Ray
Logs, metrics and traces from every component — how you find out what broke and why.
In a monolith
Logs + one dashboard
stdout logs, a few metrics (CPU, latency, errors) and alerts. One process, one log stream — debugging is grep.
In a distributed system
Correlated telemetry
A request crosses six services; without a trace ID propagated on every hop you can’t reconstruct what happened. Metrics per service, central logs, distributed tracing, SLO alerts.
On AWS
Amazon CloudWatch + AWS X-Ray
CloudWatch Logs, Metrics, Alarms and dashboards; X-Ray (or OpenTelemetry via ADOT) for traces and service maps.
- CloudWatch Logs + Metrics + Alarms$$Native; priced per GB ingested
- X-Ray / ADOT (OpenTelemetry)$Distributed tracing and service maps
- Managed Prometheus + Grafana$$Open-source tooling, managed
- Reach for it when
- Always — and non-negotiable once requests cross service boundaries.
- What it costs you
- Telemetry volume costs real money (sample traces, drop debug logs)
- Instrumentation work in every service
- Alert fatigue if you alert on causes instead of symptoms
- When it dies
- The system keeps running, but you’re blind: incidents last longer because nobody can see them.
Interview follow-ups
Logs vs metrics vs traces?
Metrics: cheap aggregates for alerts and trends. Logs: detailed events for debugging. Traces: one request’s path and timing across services.
What would you alert on?
User-facing symptoms against SLOs: error rate, latency percentiles (p99), saturation, queue age — not every CPU spike.