Observability Standards
Instrument user-visible behavior and operational boundaries, not every line of code.
Signals
- Logs: structured event names, severity, stable context, request or correlation ID, and actionable failure details without secrets or unnecessary personal data.
- Metrics: rates, errors, duration, saturation, queue depth, retries, and domain success indicators with bounded-cardinality labels.
- Traces: meaningful service and dependency boundaries with propagated context and sampled detail.
- Health: distinguish process liveness, readiness, dependency health, and degraded operation.
Alerts and Dashboards
Alert on symptoms tied to user or operational impact. Each alert should identify ownership, severity, threshold/window, dashboard, and first diagnostic action. Avoid alerts that are unactionable, duplicate, or based on unbounded cardinality.
Verify instrumentation by exercising the behavior and locating the resulting signal. State retention, privacy, cost, and sampling trade-offs.
1---2name: observability-standards3description: Design or review logs, metrics, traces, health checks, dashboards, and alerts that make failures diagnosable.4---56# Observability Standards78Instrument user-visible behavior and operational boundaries, not every line of code.910## Signals1112- Logs: structured event names, severity, stable context, request or correlation ID, and actionable failure details without secrets or unnecessary personal data.13- Metrics: rates, errors, duration, saturation, queue depth, retries, and domain success indicators with bounded-cardinality labels.14- Traces: meaningful service and dependency boundaries with propagated context and sampled detail.15- Health: distinguish process liveness, readiness, dependency health, and degraded operation.1617## Alerts and Dashboards1819Alert on symptoms tied to user or operational impact. Each alert should identify ownership, severity, threshold/window, dashboard, and first diagnostic action. Avoid alerts that are unactionable, duplicate, or based on unbounded cardinality.2021Verify instrumentation by exercising the behavior and locating the resulting signal. State retention, privacy, cost, and sampling trade-offs.