Learn

Observability: Understanding a Running System

Logs, metrics, and traces provide complementary evidence about running software. Follow a slow checkout request to see how telemetry supports diagnosis and what it can miss.

Evidence from a running system

Observability concerns how well a team can understand a system’s behavior from the information it exposes. A dashboard showing that a service is busy is useful, but diagnosis often requires knowing which operation is slow, which dependency is involved, and what changed. The information must connect to a question an operator can act on.

OpenTelemetry’s observability primer introduces telemetry as a way to investigate software behavior. Its ecosystem distinguishes several signals. Metrics summarize measurements, logs record events, and traces relate work across an operation. They offer different views rather than competing replacements for one another.

A slow checkout example

Imagine a checkout endpoint whose response time increases after a release. A request-duration metric can show when the change began and how many requests it affects. An error-count metric can show whether slow requests also fail. CPU and queue measurements might suggest that the service is saturated, but those observations alone do not establish a cause.

A trace for an affected request might show that most elapsed time is spent waiting on an inventory dependency. A related log event might identify a timeout or an unexpected retry. Looking at a previous fast trace can reveal that the new release calls the dependency twice. This sequence turns a vague report, “checkout feels slow,” into a specific hypothesis to test.

The example is deliberately hypothetical. Real diagnosis should preserve uncertainty: two events occurring at similar times do not prove one caused the other. Verify the suspected behavior in code or a controlled test, then check whether a corrective change resolves the symptom without creating another problem.

Metrics answer aggregate questions

OpenTelemetry’s metrics documentation describes runtime measurements with associated time and metadata. A request counter and a latency distribution can answer how much work the system handled and how durations varied. A useful metric has a clear unit, scope, and meaning.

Choose dimensions carefully. Grouping by an operation name can support comparison; attaching every unique request identifier can produce an enormous number of series without helping a normal aggregate query. Keep per-request detail where it is useful and maintain summaries that remain understandable under load.

For the checkout service, comparing successful requests separately from failures can matter. A fast failure should not make the overall latency look like an improvement. Similarly, an average can hide a small group of users waiting much longer. Define the population behind every graph.

Traces connect work

A trace records spans representing portions of an operation, with relationships that connect them. The OpenTelemetry traces guide explains spans and their context. Propagating that context across service boundaries lets a team relate a front-end request to downstream work instead of guessing from timestamps alone.

Sampling may keep only a selection of traces. That can control cost, but it changes which questions the retained evidence can answer. A rare failure may be missed if the sampling strategy does not capture it. Missing telemetry is not proof that an operation never occurred.

Collect deliberately

Instrumentation has resource and maintenance costs. A useful setup records enough detail for expected investigations, avoids sensitive request content when unnecessary, and defines retention and access. It also tests that a meaningful failure produces a recognizable signal. A monitoring system that silently stops recording errors creates false confidence.

For a new service, start with the user’s critical path: request volume, failures, duration, queues, and key dependencies. Then add evidence needed to explain specific uncertainty. Observability matters because a system can pass its development tests yet encounter new conditions in operation. Continue with latency and throughput to interpret service behavior and APIs to define what each boundary promises.