The word comes from control theory: a system is observable if you can work out its internal state from its outputs. In software, it means that when users report "payments are slow", an engineer can find out which payments, since when, and which component is responsible, using data already being collected, without adding new logging and redeploying first.
The signals
- Metrics are numbers over time: requests per second, error rate, p95 latency, queue depth. They are cheap to store and good for alerts and dashboards.
- Logs are timestamped records of events. Structured logs (JSON with fields such as
order_idandtenant) can be searched and counted, unlike free text. - Traces follow one request across services. Each step is a span with a start time, a duration and attributes. A trace shows that a slow checkout spent 1.8 seconds waiting on the fraud service.
- Profiles show which functions use CPU and memory. OpenTelemetry added profiling as a newer signal after traces, metrics and logs.
The value comes from linking them. A spike on a latency graph should lead to example traces from that minute, and each span to the logs it wrote, joined by a shared trace ID.
Observability vs monitoring
Monitoring checks for failures you expected: CPU above 90%, the health check failing, error rate above 1%. Observability lets you investigate failures you didn't expect, such as "errors only for Android users on version 5.2 in one tenant, through one payment provider". Monitoring is part of observability, not a rival to it. You still need alerts, ideally on SLOs rather than on raw machine metrics.
It matters most in microservices, where one user action touches many services and no single log file tells the story.
OpenTelemetry
OpenTelemetry (OTel) is the CNCF project that standardises how applications produce telemetry. You instrument once with OTel SDKs, send data through an OTel Collector, and choose or change the backend later: Grafana, Datadog, New Relic, Honeycomb, Elastic or a self-hosted stack. We compare the main backends in Datadog vs Grafana vs New Relic.
Example: tracing a slow UPI checkout
An e-commerce API's p95 latency rises from 400 ms to 2.5 seconds at 20:10. The engineer:
- Opens the latency panel and filters by route. Only
POST /checkoutis slow. - Picks a slow trace. The
payment-servicespan takes 2.1 seconds, almost all of it in a call to one payment gateway. - Groups slow spans by attribute. All of them have
payment.method=upiandgateway=B. - Follows the trace ID to the logs, which show retries after timeouts from gateway B.
The team routes UPI traffic to gateway A with a feature flag, and latency recovers by 20:25. Fast diagnosis like this is what lowers MTTR.
Observability for AI and agents
LLM features and AI agents need the same discipline plus more. Trace each model call, tool call and retrieval step, and record the model, token counts, latency and cost on the span. OpenTelemetry's generative AI semantic conventions define attribute names for this, though they were still at Development status in 2026. Quality needs its own checks, covered under LLM evaluation.
Common mistakes
- Collecting everything. High-cardinality labels (user IDs as metric labels) and verbose debug logs drive up bills fast. Sample traces and drop noise in the Collector.
- Logs without request or trace IDs, which can't be joined to anything.
- Dashboards nobody looks at, with no SLOs and no alerts tied to user impact.
We set up OpenTelemetry, dashboards and SLO-based alerting through our cloud and infrastructure work.