Q51: How do you design for observability?
Use three complementary signals: metrics for aggregate trends and alerts, logs for event details, and distributed traces for request paths across services. Propagate correlation or trace IDs, capture dependency latency and errors, and avoid logging secrets or excessive personal data. Define SLO-oriented dashboards and actionable alerts. Ensure telemetry has sampling, retention, cardinality, and cost controls, and verify that alerts reach a responder.
Key Takeaways
- Metrics show patterns, logs provide detail, and traces show request paths.
- Instrument user outcomes and protect sensitive telemetry.