Part III β The Speed
7 Logging & Monitoring
GoalKnow something broke, and why, before the user tells you.
- 7.1 Logging & Monitoring Overview Logs, metrics, and traces answer three different questions β you need all three to debug production.
- 7.2 Telemetry Capture enough context to debug, sample enough to afford it, and scrub everything personal.
- 7.3 Alerting Alert on user-visible symptoms with an owner and an action β everything else is noise that trains people to ignore pages.
- 7.4 Fixing Stop the bleeding first, find the cause second β rollback beats a clever hotfix at 3am.
Capstone
Define five alerts for an e-commerce checkout β each with a threshold, a window, an owner, and the first action on fire.