Skip to main content
Fabien Fouassier
Back to Writing

Observability Across System Boundaries

An app-and-server scenario shows who should report which failure, how to connect the evidence, and why a timeout means "outcome unknown" rather than "nothing happened".

Topics
ObservabilityArchitectureReliability
Published
Reading time
6 min read

When something fails, several parts of a system may notice, and none of them has the whole story. A server may refuse a request, the app may show the refusal, and a retry may create another attempt. Treating each sighting as a separate incident creates noise. Silencing every sighting but one can hide what the user actually experienced.

The engineering decision is what each side is responsible for recording, and what another engineer can conclude from that record. Consider a mobile app that saves a note to a server. A reporting policy needs to account for what each side can observe.

Start with what each side knows

The app knows what the user meant to do, which attempt it started and what answer came back. The server knows whether it accepted the request, what work it did and what answer it tried to send. Neither can reconstruct the other's full history from one local event.

Suppose the server saves the note and the connection drops before the answer reaches the app. The app sees a network failure. It cannot conclude that the note was not saved. Calling the operation a failure would turn incomplete evidence into a false statement about what happened.

I would make the uncertainty explicit in what the app records: the attempt ended, the network failed, and the outcome is unknown. Recovering safely then needs an agreement between the two sides, such as asking the server what happened, or sending the same save in a way the server can recognize as a repeat. Linking the evidence helps investigate the attempt; it does not make repeating a save safe.

Agree who reports what

Before choosing dashboards, I would agree a short table for this app:

What happenedWho reports itExtra evidence
The app rejects an empty note before sending itNobody; this is expected input checking.A usage count, only if it answers a defined question.
The server refuses a note with a clear, known reasonNeither side raises an error report.Counts can show a confusing screen or a changed caller.
The server hits an unexpected storage failureThe server owns the diagnostic report.The app may record the user impact, linked to that attempt.
The app cannot read a successful answerThe app owns the report.The server's reference for that request helps compare accounts.
No answer arrives before the app's deadlineThe app reports a network failure with unknown result.Server records may show success, refusal or no request at all.

This policy does not need one record per operation. A server diagnostic and an app impact event answer different questions. What it does need is clear meaning, so an alert does not mistake two sightings for two separate root causes.

The table can also change. A refusal that is routine for one feature may signal a defect when a trusted internal caller triggers it. Each case should be judged against what that operation is expected to do, not by a blanket rule that client errors are harmless and server errors are all urgent.

Connect the evidence without claiming cause

One operation can have several attempts. I would keep a reference for the whole operation separate from a reference for each attempt, and link each attempt to the server's reference for the request it received. Reusing one identifier for a whole session makes retries and simultaneous requests hard to tell apart. Figure 1 shows the two kinds of reference for one save.

Read top to bottom. The line joins an attempt to the request it sent. The dashed step is one the app cannot confirm.

The app knows

Operation

Reference for the whole save

The app knows

Attempt 1

Own reference

The server knows

Request received

Server's own reference, linked to Attempt 1's

The server knows

Note stored

Out of the app's sight

The app knows

Answer lost: outcome unknown

Recorded as a network failure, not a failed save

The app knows

Attempt 2

Same operation reference, new attempt reference

Figure 1. One operation, several attempts The server side follows only the first attempt's request. Missing linked evidence stays ambiguous: the request may never have arrived, recording may have been off, or export may have failed.

Distributed tracing is the standard way to describe related steps and carry that context across boundaries. Its identifiers connect observations. They do not decide which failures matter, and they do not guarantee every observation was kept. OpenTelemetry's trace concepts (opens in new tab) describe the model.

A reference received from a caller is also untrusted input. Check its shape and size, keep it out of any decision about who is allowed to do what, and do not let arbitrary text flow into logs. The server can create its own reference while keeping a checked link to the caller's.

Missing linked evidence stays ambiguous. The request may never have arrived, the recording may have been switched off, or sending the data may have failed. Time measured on one machine describes how long an attempt took; timestamps from different machines do not establish a precise global order.

Limit what you collect, and know which control does what

"Reduce the logs" hides four separate decisions:

  • Redaction decides what may be collected at all. I prefer a short list of approved diagnostic fields over recording a whole request and removing a few known secrets afterwards.
  • Sampling chooses which observations to keep. It lowers volume and changes what can be reconstructed later.
  • Rate limiting caps how much is sent in a period. It protects the system but loses detail once the limit is reached.
  • Aggregation records counts or distributions instead of every individual event.

Sampling by a stable client identifier keeps one client consistently in or out. It does not cap how much an included client sends: a noisy client that was selected can still produce an unlimited number of events. A hard cap needs a separate limiter, with a stated behavior when the limit is hit.

The trade-offs should be visible. Sampling independently on each side can leave disconnected fragments. Keeping complete traces costs more. Limits protect the collector but may throw away the evidence of a burst. Counts, plus a note of how much was discarded, preserve some context without pretending the missing details are still available.

Test the policy with controlled failures

Before relying on any dashboard, I would trigger the cases on purpose: reject an expected input, make the server's storage fail, return an answer the app cannot read, and lose the answer after a successful save. For each, I would check how it was classified, how the pieces link together, which fields were kept and what the user could do to recover.

A second set of tests should break the reporting itself. A failure to send telemetry must not silently change whether the user's operation succeeded, and queued telemetry needs a size limit. These checks need to run against the implemented app, server and telemetry pipeline.

What I want from all this is a record that helps the next engineer decide: which side has useful evidence, what the user experienced, and what is still unknown. More reports do not necessarily improve that answer. Clear responsibility and honest uncertainty do.