Platform engineering and SRE

Stage 2 · Lesson 6 of 6

Sampling and correlating signals

Observability: metrics, logs and traces

At scale you cannot keep every , so you sample. Head decides when a trace starts, such as keep 10 per cent; it is cheap but may throw away the rare failure. Tail sampling decides after the trace finishes, so it can keep every error and slow request and sample the boring ones; it needs a that sees whole traces.

Then connect the signals: put trace and span IDs in every log line, and attach (example trace IDs) to latency metrics. Now a spike on a graph links to a slow trace, and the trace links to its logs.

Common trapsampling 1 per cent at the head and discovering during an that the failing request you need was never recorded.

A question to check yourself, an AI practice session and 2 cheat sheet entries come with the full roadmap. Unlock

Resources for this stage

Start with· follow one of these

Practise

Keep handy

Also worth your time

Mark this stage as not done?