Observability
Being able to ask new questions of a running system from its outputs — logs, metrics and traces, tied to the SLOs that turn them into decisions.
On this page
Monitoring tells you whether the things you predicted would break have broken. Observability is the ability to ask questions you didn’t predict — “why are checkout requests from one region slow only for logged-in users?” — using only what the system emits. In a distributed system, where the Fallacies of Distributed Computing guarantee surprises, that difference matters.
The three signals
| Signal | What it is | Good for |
|---|---|---|
| Logs | Timestamped events, ideally structured (JSON, not prose) | The detail of what happened in one place |
| Metrics | Numbers aggregated over time: rates, counts, percentiles | Trends, dashboards, cheap alerting |
| Traces | One request’s path across services, as a tree of timed spans | Where the time or the error went in a multi-service call |
They’re far more useful joined up: a trace ID in every log line lets you jump from a spike on a dashboard to the exact requests behind it.
The pipeline
- Instrument — OpenTelemetry has become the vendor-neutral standard for emitting all three signals.
- Collect and ship — agents and collectors (Fluentd, the OTel Collector) buffer and forward telemetry.
- Store and query — a metrics store, a log index, a trace backend.
- Alert on what users feel — not on CPU at 80%, but on the indicators behind your SLOs.
The frontend counts too
Observability doesn’t stop at the API. For UIs I want error tracking with source maps (Sentry-style), real-user performance metrics (Core Web Vitals), and for real-time interfaces, client-side measures like dropped frames and message lag. A trading screen can have perfect backend latency and still feel broken because the render loop can’t keep up — see Zustand Transient Updates.
Pipelines, caches and long-running jobs
Some components need their own vocabulary of signals:
- Stream pipelines: records processed, bytes processed, error counts, and lag.
- Caches: hit rate, miss rate, eviction rate, cache-operation latency and cache size, with alerts on all of them. TTL is a trade-off between freshness and hit rate. Long TTLs suit long-lived static content; recent user activity can’t be cached for long. Event-driven invalidation cuts staleness without shortening every TTL.
- Long-running jobs: report partial progress and support restarting from checkpoints, so “is it stuck?” has an answer — see Resumable Batch Migrations.
Trade-offs
- Cost and noise. Logging everything is expensive and makes the signal harder to find. Sample traces; keep high-cardinality detail in traces and logs, not metrics.
- Alert fatigue. Alerts that don’t require a human action train people to ignore alerts. Page on symptoms, not causes.
- Privacy. Telemetry is data. Scrub tokens and personal data at the source.
In practice
The habit I’ve built is to treat observability as part of the definition of done: a feature isn’t finished until I can tell, from the outside, whether it’s working for users. The same idea applies to delivery itself — lead time and change failure rate are the telemetry of your process. And it applies to agents: if you can’t see what an AI agent perceived and why it acted, you can’t trust it.
- #observability
- #monitoring
- #logs
- #metrics
- #tracing
- #opentelemetry
↩ Linked from (17)
…Make failures observable. If you can't see what an agent perceived and why it acted, you can't iterate on it (Observability).
…ure, and treat slow or unreliable dependencies, model calls included, as things to queue, observe and govern (Observability).
- DORA MetricsGrowing
DORA metrics are Observability for the delivery process, and the scorecard for an Internal Developer Platform: if the platform is working, these numbers move.
- Fallacies of Distributed ComputingEvergreen
…etries and a "simple" polling design that would have hammered a backend. When something does go wrong anyway, Observability is how you find out which fallacy it was.
Related: AG Grid Performance Patterns · Observability
…ies with idempotency keys, circuit breakers, backpressure (The Node.js Event Loop, Streams and Backpressure). Observability from the server side. Tracing, SLOs and error budgets (SLA vs SLO vs SLI, Observability).
- Internal Developer PlatformGrowing
Service scaffolding (Golden Paths) CI/CD and environments Infrastructure provisioning, often through infrastructure-as-code modules Secrets management and access control Observability wired in by default (Observability)
- Mining Reddit for ResearchGrowing
…erything, stable IDs, and a clear line between raw and cleaned data. The research equivalent of good logging (Observability).
window.addEventListener("error") and "unhandledrejection" catch what boundaries miss. Forward both to your error tracker or RUM tool (Observability). try/catch only catches a rejected promise if you await it.
In training, you notice the bad day. Systems need instruments to notice for them: latency percentiles, error rates, queue depth, dropped frames on the client. Without that Observability, you're grinding blind.
- Rolling Out an API GatewayGrowing
…of per-route latency and error rates on day one. The gateway sees every request, which makes it the cheapest Observability point in the whole system, and the earlier that view exists, the more it pays back.
Shadow (echo) testing: copy real traffic to the new model and compare its answers, without users ever seeing them. Canary: then route a small slice of real users to it, watching the metrics that matter (Observability).
- SLA vs SLO vs SLIGrowing
…ould tell us this is working for users?" — and the answer became an SLI. The plumbing behind those numbers is Observability.
- Spring and Java, RefreshedGrowing
…decide how the same code behaves in each environment. Treat them like code: reviewed, versioned, documented. Observability comes nearly for free. Spring Boot's actuator endpoints and metrics integrations mean health che…
…ld tool or framework is safest when the failures are loud: a page that won't render is easy to spot, and good Observability makes it easier still. Walk every user journey on the new stack with the people who know them be…
…t-loop lag. If the loop is late, everything is late. It's one of the first metrics I'd put on a Node service (Observability).
- What Makes an AI AgentGrowing
…fects hurt agents even more than they hurt people, because agents won't ask in Slack when the docs are wrong. Observability isn't optional. You need to see what the agent perceived and why it chose an action — the same t…
↪ Links to (5)
Related by topic
- Seed
Planes and Bounded Contexts
Platform engineering - Seed
Anti-Corruption Layer
Backend - Seed
Kubernetes
Platform engineering - Growingcase study
A Resumable CMS Migration Tool
Distributed systems