التوصيف (Observability) هو القدرة على فهم الحالة الداخلية للنظام من خلال مخرجاته الخارجية — عبر السجلات (logs)، المقاييس (metrics)، والتتبع (traces). وهو ضروري لتشغيل الأنظمة وتصحيح الأخطاء والحفاظ عليها (خاصة الأنظمة الموزعة)، حيث لا يمكنك إدارة ما لا تستطيع رؤيته.
الأركان الثلاثة للتوصيف
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.
