Production Reality
What Breaks, How You See It, And When You Get Woken
At this level a bug cannot be reproduced, only recorded. Correlation identifiers, structured logs and traces make the question answerable; error budget arithmetic and burn-rate alerting stop you being woken for nothing.
It works on my machine is a beginner problem. The problem at this level sounds like this: checkout fails for about four percent of requests, only in one region, only when the basket has more than ten items, and only since Tuesday. You cannot reproduce that, you can only have recorded it. Observability is not a tool you buy, it is the decision to record enough in advance that a question you have not thought of yet stays answerable.
The highest-value afternoon available to you
Most small teams have logs and a host dashboard and no traces, which is why the common diagnosis is it is slow and the common fix is a guess: logs and traces are stored per event and can carry identity, metrics are stored per unique label combination and cannot. Start cheaper than tooling. Generate a request identifier at the edge, put it in every log line for that request, pass it to every service and background job it creates, and show it to the user on the error screen. A support message saying it broke and here is the code then becomes one query that returns the whole story, which is a forty minute debugging session turned into a forty second one for an afternoon's work.
Structured logs, and what never goes in them
Log one machine-readable object per event, not a sentence, which is readable by one person at low volume and unsearchable at any real volume. Carry the same fields everywhere: timestamp, level, request identifier, tenant and user identifier, route, duration, outcome, and the error class when there is one. Then you can ask which routes fail for which tenants rather than searching for words you hope somebody wrote. Be equally deliberate about what never enters a log, because a log platform is a second copy of your data with its own retention and more readers: no passwords or tokens, no card numbers, no complete request bodies by default, no personal data you would have to delete on request. Erasure obligations do not stop at your database, and twelve months of personal data in a log platform comes from logging one whole object once.
Traces, and why the tail dominates
When one page load fans out into twenty calls, the slow call shows up far more often than a per-call percentile suggests, because the page waits for all of them. That is the argument of The Tail at Scale by Dean and Barroso, 2013, and it is why a system can have excellent average latency and still feel broken. You cannot reason about a fan-out from aggregate numbers, you need one request's real path with timing per hop. Instrument with OpenTelemetry rather than a vendor's agent, because the standard outlives your supplier. Then sample with judgement: one in a hundred ordinary requests plus every error and every slow one buys detail about the requests you care about, where uniform sampling buys detail about requests nobody asks about.
Alert on symptoms, and only on what you promised
Processor utilisation at ninety percent is not an incident, it might be a healthy machine doing work you paid for. Checkout failing for two percent of customers is an incident even when every resource graph is green. So page on user-visible symptoms, which are few and stable, and leave causes to the dashboards you read after being woken. Then narrow further: a service level objective is not an uptime figure for your site, it is a target on one indicator for one journey, signing up, logging in, loading the main screen, taking a payment. Define it as the share of requests served successfully under some threshold, set a target you will defend, and accept that everything you did not list is explicitly not an objective, which is the useful half of the exercise.
43.2 min
the entire monthly error budget at 99.9 percent, about seventy percent of which one half-hour incident spends on its own
The arithmetic makes this concrete. A thirty day month contains 43,200 minutes, so the budget of allowed failure is simple division. Ninety-nine percent gives you 7.2 hours a month, three nines gives 43.2 minutes, 99.95 percent gives 21.6 minutes, and four nines gives 4.32 minutes, which includes every deploy, every migration and every dependency's bad afternoon. The budget is also permission: if you have not spent it you are being too careful and could ship faster. That is the real function of the framing, because it stops availability becoming an argument about how cautious everyone feels.
Burn rate, and an alert somebody answers
A fixed threshold is wrong in both directions. Error rate above one percent wakes you for a thirty second blip and says nothing about a 0.4 percent failure rate quietly eating your whole month. The alternative, from Google's SRE Workbook, is multi-window multi-burn-rate alerting: alert on how fast you are consuming the budget, and require a fast window and a slower window to agree before paging. A sharp outage trips both, a slow leak trips the long window only, a blip trips neither. When it fires, mitigate before you diagnose, because reverting a deploy is almost always faster than understanding it, then tell customers before they ask, because the status update is the part of an incident they remember.
- An external uptime check on the one path that matters, escalating to your phone. Exactly one thing should be able to wake you, because if three can you will eventually silence all three.
- A payment failure alert, because a broken checkout often generates no errors of your own when the break is in the vendor, and silence looks exactly like a quiet day.
- A cost anomaly alert, because a runaway loop shows up on the invoice before it shows up as an outage, and on credit-based plans exhausting the balance is an outage.
- One daily digest you genuinely read, holding everything real but not urgent, which is where almost everything belongs.
- And a rule for all of them: every alert names an owner, links a runbook and states the action. If there is no action it is a dashboard, not an alert, and an alert that fired and needed nothing gets deleted or widened that day.
Key takeaways
This is one lesson of 541.
The whole Foundation is free — 16 subjects, beginner to advanced. Sign in to track what you have read, take the end-of-module quizzes, and use the terminal.