Observabilidade é a capacidade de entender o estado interno de um sistema a partir de suas saídas externas — através de logs, métricas e traces. É essencial para operar, debugar e manter sistemas (especialmente distribuídos), onde você não pode gerenciar o que não consegue ver.
Os três pilares da observabilidade
LOGS → timestamped records of events (what happened) → detailed, for debugging specific issues
METRICS → numerical measurements over time (CPU, latency, request rate, error rate) →
aggregate health/performance; dashboards; alerting
TRACES → follow a request's path through the system (across services) → understand flows,
find bottlenecks/failures in DISTRIBUTED systems (which service was slow?)
→ together: understand WHAT happened, the OVERALL state, and the PATH of requests.
