Skip to content

Find a failure cohort in sampled traces

Quantify a systemic failure with population counters and use sampled traces to explain it.

Scenario

An inventory assistant stores all failed traces and one in twenty successful traces. A dashboard built from retained traces says most overnight lookups fail. The owner wants to know whether a new index actually increased failures.

Explanation

Sampling changes the population you can see. Tail sampling can retain rare or slow failures for diagnosis. If failures are retained more often than successes, a fraction calculated from the trace store overstates their population rate. Use unsampled request counters by cohort when you have them. With known inclusion probabilities and suitable data, weighting is another way to estimate a rate. If sampling rules are unknown, make the evidence limitation explicit.

Choose cohorts that match a plausible shared cause, such as index version, tool route or document type. Use outcome counters to compare size and rate. Then inspect representative traces in the affected group, including successes, to find the earliest common difference. Check that the cohort definition is stable over the time window.

Worked example

In synthetic operating data, index One has 24 failures in 1,200 requests and index Two has 18 in 200. The population rates are 2% and 9%. The smaller group has fewer total failures and a higher rate. Comparing successful and failed traces on index Two can show which calls differ.