Debugging a Checkout Error Across Five Microservices

What it took to find a failing checkout form across five microservices with distributed tracing, compared with reading logs in a single Go process.

· 2 min read · Erik Kubica

A client once brought me in to look into a recurring 500 Internal Server Error on their main checkout form.

To find which line of code was throwing the error, their tech lead did not open server logs. Instead, he opened a Jaeger distributed tracing dashboard, navigated through three proxy layers, and searched for a correlation ID.

A single user submission had traversed five separate microservices:

[Ingress Gateway]   -- 14ms -->
  [Auth Service]    -- 22ms -->
    [Cart Service]  -- 35ms -->
      [Billing API] -- 48ms -->
        [Ledger DB] (Total hop time: 119ms before database execution)

Halfway through the chain, one service did not forward the traceparent HTTP header. The trace broke into three orphaned fragments, and it was hard to tell where the checkout had actually failed.

The Cost of Distributed Tracing

Distributed tracing is useful, and when a system is already split into many services it is often the only practical way to follow a request. It also has a price.

When you split an application across containers, you take on some observability overhead:

  1. Serialization cost: Every internal service must marshal and unmarshal JSON or Protobuf payloads, which on that system took roughly 12% to 18% of the available CPU cycles.
  2. Context propagation: Every HTTP client and internal queue worker has to pass X-Correlation-ID and W3C trace headers. One missed header and the trace breaks.
  3. RAM and infrastructure bills: On that setup, the OpenTelemetry collector daemons, Jaeger query nodes and storage backends used about 1.5 GB of RAM per host and added roughly $120–$180/mo to the observability invoice.

For a system of that size, it is worth asking whether the split into services pays for itself.

Finding the Error in a Monolith

In a modular monolith written in Go running as a systemd service on a standard Linux node, finding the same kind of error can be a direct journalctl call:

journalctl -u api.service --since "10 min ago" -p err --output=cat
{"time":"2026-11-08T10:14:02Z","level":"ERROR","caller":"billing/checkout.go:88","msg":"card declined: insufficient funds","user_id":1842,"order_id":9021}

One command. The caller file and exact line number are right there, along with the error message.

In my own monolith setup there were no network hops to trace and no external SaaS platform to query. The application ran in a single process using about 25 MB of RAM, and the answer was available in around twelve seconds.

Metric 5-Service Microservice Mesh Single Go Monolith
Internal Network Hops 5 TCP roundtrips (119 ms) 0 ms (in-process memory)
Observability Overhead 1,500 MB RAM (OTel + Jaeger) 0 MB (journald stdout)
SaaS Tracing Invoices $120 – $180 / month €0.00 / month
Time to Root Cause 45 minutes of span digging 15 seconds in journalctl

These figures come from those two particular setups, so read them as rough examples and not as a general comparison.

Takeaway for me: before adding tracing infrastructure, check whether the service boundaries are earning their keep.

If a flow like checkout is split across five services mainly out of habit, merging the core of it into one process may be worth considering. Where teams, scaling or deployment needs really do call for separate services, tracing is a reasonable tool, as long as every service forwards the headers.

Tell me what you need built

Usually a reply within a day, by email or WhatsApp.