Skip to content
sinc-LLMBook a 15-minute call

Your Error Trace Sample Cannot Tell You the Failure Rate by Itself

Recover the workflow failure rate from an eligible request ledger or a sample with known inclusion probabilities.

On this page

By Mario Alexandre · November 27, 2026 · 2 min read

The short answer. Compute the failure rate from a complete counter or a request ledger that records one terminal outcome per eligible workflow. Keep error-rich sampled traces for diagnosis. If traces are all you have, use them for a population estimate only when you know and can defend how eligible requests entered the sample.

There is a good reason to keep more failures than successes in a trace backend. A failed run carries diagnostic detail. After increasing that retention, the trace dashboard might show a jump in the percentage of failures even if the application itself behaves the same way. The sample composition changed.

Count the same thing in both systems

Choose a logical unit such as one submitted form, with retries linked to that same form's run ID. Define eligible requests, the terminal states you consider failures and the evaluation window. Use the same boundaries for numerator and denominator. A failed intermediate attempt that recovers before the deadline and a request that expires without a result may warrant different outcome labels.

Record unfinished requests separately. If the unit is a completed intake cohort, allow its known outcome deadline to elapse or report how many cases still lack a label. Keep the request counter independent of trace export and sampling; a dropped span should not remove an eligible request from the denominator.

Work through deliberate oversampling

In a synthetic workload of 1,000 completed requests, 50 failed and 950 succeeded. Suppose retention captured all 50 failures and 95 of the successful requests.

Signal Failed Successful Failure fraction
Complete request ledger 50 950 50 / 1,000 = 5%
Retained traces 50 95 50 / 145 ≈ 34.5%

Suppose the sample took every failed request and used an independent probability of 0.10 for each successful request, with no other trace losses. Weight each observed failure by 1 and each observed success by 10. The weighted ratio is 50 / (50 + 950) in this example. In another sample the weighted success total could differ. The ratio is an estimate whose uncertainty depends on the sampling design.

OpenTelemetry's sampling overview explains how tail sampling can use criteria from a trace. A rule that retains slow calls as well as errors can produce different inclusion probabilities across successful requests. Record the actual policy and any collector drops before treating a weight as known.

Put the failure diagnosis beside the denominator

Test one known success and one known failure against both systems. Then simulate the absence of the traces in a controlled run and verify that the request ledger still yields the expected outcome counts. If the pipeline cannot account for missing labels or unknown sampling, give readers the diagnostic sample counts and leave the population rate open.

Put the eligibility definition and observed missing terminal count next to the rate in the dashboard. Over the same reporting window, check that the counter and the ledger use the same intake window, eligibility and completion rules. A shift in trace retention can then be investigated without changing the denominator.

Use the complete-rate figure for alerting and the sampled traces to investigate contributing paths. The sinc-LLM observability metrics guide covers the broader measures that belong beside that rate.