オブザーバビリティは、ログ、メトリクス、トレースを通じてシステムの外部出力からその内部状態を理解する能力です。システムの運用、デバッグ、保守(特に分散システム)に不可欠であり、見えないものは管理することができません。
オブザーバビリティの3つの柱
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.
