Observability
Observability is the ability to understand what’s happening inside a system from the data it emits, including the ability to answer questions you didn’t know you’d need to ask.
Traditional monitoring watches for problems you can predict: CPU is high, disk is full, the health check failed. That’s still necessary, but cloud systems made of many services, functions, queues and managed components fail in ways nobody predicted. Observability is about being able to investigate those unknown unknowns without shipping new code to find out what’s going on.
The signals
- Logs: timestamped records of discrete events. Make them structured (JSON, not prose) so they can be queried, and include a correlation ID that follows a request through every service.
- Metrics: numeric measurements over time, such as request rates, error rates, latency percentiles and queue depth. They’re cheap to store and good for alerting and trends.
- Traces: the path of a single request across services, showing where the time went. In distributed and event-driven systems, traces are often the only way to see the whole story.
OpenTelemetry has become the vendor-neutral standard for producing all three. Instrument with it, and you can change where the data goes without changing your code.
Measure what users experience
It’s easy to measure hundreds of things and understand none of them. We recommend starting from the user’s point of view:
- SLI (Service Level Indicator): a measure of the service as users experience it, for example “the proportion of checkout requests that succeed within 500ms”.
- SLO (Service Level Objective): the target for that indicator, for example “99.5% over 30 days”.
- Error budget: the amount of failure the SLO allows. While there’s budget left, ship features. When it’s being burned quickly, slow down and invest in reliability.
Alert on symptoms that users feel (the SLO is burning too fast), not on every cause (one instance has high CPU). Pages should be rare, urgent and actionable, otherwise people learn to ignore them.
This is behaviour-driven measurement: choose measures that, if people “game” them, produce the behaviour you actually want. Gaming an SLO built on user experience means making the user experience better. Gaming “number of alerts closed” means closing alerts.
Measure what your users feel, not what your servers do.
Observability is how you go and see
The best way to understand any system, technical or organisational, is to go and look at it directly rather than relying on reports about it. In production, observability is going to look: following a real request through the real system and seeing what actually happened, not what the architecture diagram says should happen.
Dashboards are useful, but they only show the questions someone thought to ask last quarter. Make sure engineers can explore the raw data, and make sure they actually do. Some of the most valuable insights come from someone saying “that’s odd” while poking around a trace.
Good practice
- Instrument as you build. Observability is part of the Definition of Done, not a phase at the end.
- Watch the cost. Telemetry volume can quietly become one of your biggest bills. Sample traces, set retention deliberately and don’t log every request body “just in case”.
- Don’t log secrets or personal data. Logs are often less protected than databases.
- Use runbooks and blameless post-incident reviews to turn what you learn into lasting improvements.
- Observe your AI too. For AI systems and agents, trace prompts, tool calls, token usage, latency and evaluation scores, because “it returned a 200” says nothing about whether the answer was right.