Skip to content
Updated: 6 min read

Observability: logs, metrics and traces in practice

Observability in practice: what each of the three signals — logs, metrics and traces — actually settles, when each one pays for itself, and how to keep retention from eating the budget.

Przemysław Wojdak Author: Przemysław Wojdak

Observability is a system’s capacity to answer questions about its own state without shipping new code — built on three telemetry signals: logs, metrics and traces. It is not a tool name, nor a replacement for monitoring; it decides whether, after an incident, you reach the cause or guess from a dashboard. The difference is practical.

Quick Overview

What you’ll learn:

  • Which question each of the three signals answers, and what none of them replaces
  • When traces are worth the instrumentation effort and when metrics and logs suffice
  • How retention and sampling decide what observability costs you
  • Where to start if the organisation has no coherent stack yet

Who this article is for:

  • DevOps and SRE engineers rolling out observability from scratch
  • Platform engineering teams building one shared stack for many teams
  • Administrators moving from scattered tools to a single solution

Reading time: 6 minutes

Three Signals and What Each One Settles

Metrics are numbers aggregated over time: request counts, latency, memory use, queue depth. They answer “is something wrong” — and they do it cheaply, because aggregation caps data volume regardless of traffic. What they will not tell you is why: a latency chart that spikes shows a symptom and nothing more.

Logs are events with context — a record of what specifically happened at a given moment in a given process. They answer “what happened”. Their strength is detail and their weakness is cost: log volume grows directly with traffic, and full-text search is the most expensive operation in the whole stack.

Traces describe a single request travelling across several services, with each leg recorded as a span carrying its own timing and parent. They answer “where did it happen”. In a distributed architecture this is the only signal that shows that, out of two hundred milliseconds of latency, one hundred and eighty are consumed by a single call three layers down.

The OpenTelemetry documentation (opentelemetry.io) calls these three the primary signals and stresses something easy to miss in practice: the value appears only with correlation. A metric you cannot drill from into a trace, and a trace you cannot drill from into the logs of that specific span, leaves the engineer exactly where plain monitoring left them.

When Each Signal Pays for Itself

The order of adoption is not a matter of taste. Metrics come first, because without them there is nothing to base alerting or an error budget on — and it is those, as the Google SRE book (sre.google) argues, that settle when it is reasonable to wake anyone up at all. Logs are usually already there, just scattered; tidying them up is more often about unifying format and identifiers than about adding another tool.

Traces are an investment with a different profile. They require code instrumentation or an automatic agent, context propagation across every service boundary, and discipline in naming spans. They repay where a request crosses several independently deployed components. In a monolith with one database, the same effort spent on improving query logging will return more.

A practical rule: if you can answer “which service slowed down” within minutes without traces, traces are not your most urgent gap. If the answer requires a call with three teams, they are.

There is also a prerequisite that gets skipped, and without it none of the three signals correlates with the others: a shared request identifier propagated through every layer and written into every log line. Adding it costs one header and one field in the log format, and without it moving from a metric to a specific log stays a manual exercise in matching timestamps. It is the cheapest single change available before choosing any tool at all.

Retention, Sampling and the Observability Bill

The biggest surprise in observability rollouts is not technical difficulty but the invoice. The mechanism is simple: cost scales with signal volume multiplied by how long you keep it, and both factors are easy to set to “maximum” by default and then forget.

Three decisions worth making deliberately at the start:

  1. Different retention windows for different signals. Aggregated metrics are worth keeping for a long time, because they are cheap and support year-over-year comparison. Raw debug logs are rarely useful after a week. One shared window for everything is the most expensive available choice.
  2. Sample traces, but not purely at random. Tail-based sampling — deciding whether to keep a trace after it finishes, based on an error or high latency — preserves the cases that actually need analysis and discards the dull ones. A random one percent does the opposite: it most often drops exactly the requests you are looking for.
  3. Treat label cardinality as a limit, not a detail. A label carrying a user or request identifier in a metric creates a separate time series per value. That is the fastest known route to toppling a metrics backend, and simultaneously the most common first-month mistake.

A fourth decision is organisational: agreeing who pays. As long as telemetry cost is a shared cost, nobody has a reason to restrain their own logging.

Read Also

Build Your Skills

This topic connects to the Observability Stack — Grafana, Prometheus, Loki, Tempo and System Observability and Reliability Engineering courses. Review the programme and contact us to match the scope to the state of your environment.

Frequently Asked Questions (FAQ)

How is observability different from monitoring?

Monitoring checks predefined conditions and reports whether they hold. Observability lets you ask the system a question nobody anticipated when the dashboards were designed. In practice, monitoring catches known failure modes while observability is what you use to unpick unknown ones.

Can we start with traces and skip metrics?

Technically yes, but it is usually the wrong order. Without metrics there is nothing to alert on, so traces accumulate for incidents nobody learns about in time. Metrics tell you when and where it is worth opening a trace at all.

How much data do we need to keep?

As much as it takes to answer the questions you genuinely ask after an incident. Test it empirically: review the last few post-incident reviews and check how old the data you actually needed was. The window usually turns out shorter than the default.

Does OpenTelemetry replace our existing tools?

It does not replace the backends that store and analyse the data — it standardises how signals are collected and shipped. That is what stops a change of vendor from meaning a re-instrumentation of the application, and it is the main argument for adopting it from the start rather than after the first migration.

Przemysław Wojdak
Przemysław Wojdak Opiekun szkolenia

Request a quote

Develop Your Competencies

Check out our training and workshop offerings.

Request Training
Call us +48 22 487 84 90