Operational Excellence and Automation

An OpenTelemetry-instrumented application must retain every failed request trace while reducing storage for successful traces, with sampling decisions based on completed requests. Which changes meet these requirements? (Choose two.)

Choose 2 answers

Show the answer

Correct answersC. Send all request spans to a collector before making sampling decisions.D. Apply collector tail sampling that retains errors and samples successful traces.

AWhy not this: Metric filters produce error counts, not retained distributed traces.

BWhy not this: Head sampling decides before the outcome is known and can discard requests that later fail.

CWhy this is right: Upstream sampling could discard a request before its failure is known, preventing the collector from retaining its complete trace.

DWhy this is right: Tail sampling can evaluate completed trace outcomes and use different retention policies for errors and successes.

Tail sampling evaluates collected spans, allowing error traces to be retained while successful traces are sampled. All request spans must reach the sampling layer; head sampling can discard requests before their eventual failure is known.