Canonical: https://weaveos.com/glossary/trace-sampling

[Home](https://weaveos.com/)/[Glossary](https://weaveos.com/glossary)/[Reliability and observability](https://weaveos.com/glossary/category/reliability-observability)/Trace sampling

[Reliability and observability](https://weaveos.com/glossary/category/reliability-observability)

# Trace sampling

Also known as Trace sampling

By WeavePublished September 10, 20261 min read

## Definition

Trace sampling is selection of traces or spans to retain from a larger set of observed operations.

On this page

1. [Definition](https://weaveos.com/glossary/trace-sampling#definition)
2. [What Trace sampling shows](https://weaveos.com/glossary/trace-sampling#article-what-trace-sampling-shows)
3. [A concrete example](https://weaveos.com/glossary/trace-sampling#article-a-concrete-example)
4. [Limitations and tradeoffs](https://weaveos.com/glossary/trace-sampling#article-limitations-and-tradeoffs)
5. [How this relates to Weave](https://weaveos.com/glossary/trace-sampling#weave)
6. [Sources](https://weaveos.com/glossary/trace-sampling#sources)
7. [Related terms](https://weaveos.com/glossary/trace-sampling#related)

## What Trace sampling shows

Trace sampling is selection of traces or spans to retain from a larger set of observed operations. It matters when a team can state the decision the evidence should support, the population being measured, and the time window in which the observation matters. That framing keeps a familiar label from becoming a dashboard tile with no operational meaning. The collection method and owner should be visible whenever the signal is used in a review.

## A concrete example

All error traces are kept while a small proportion of successes are retained. A useful workflow records relevant context, compares the observation with an appropriate baseline, and follows the evidence to the service or change that may explain it. The signal should start a question rather than close the investigation. Teams should also record what action follows a meaningful change and how the result will be checked.

## Limitations and tradeoffs

Important latency or error traces may disappear when sampling is too aggressive. Interpret trace sampling alongside related signals and explicit service objectives. Sampling, aggregation, clock behavior, retention, and access policy can all affect what an operator sees. When those details are missing, conclusions should remain provisional and a precise-looking value should not be presented as a complete account of user experience.

## How this relates to Weave

Weave can help teams connect engineering delivery evidence with trace sampling questions. It can provide context from code, reviews, releases, and ownership, while the direct trace sampling measurement should remain in the system that collects it. Treat relationships as investigation leads and verify them against service telemetry and user impact.

[Explore Engineering intelligence](https://weaveos.com/products/engineering-intelligence)

## Sources and further reading

1. [Primary documentation: Trace sampling](https://opentelemetry.io/docs/concepts/sampling/)

## Related terms

### [Observability](https://weaveos.com/glossary/observability)

[Understand observability, the role of logs, metrics, and traces, and why telemetry only helps when it answers useful questions.](https://weaveos.com/glossary/observability)

### [Distributed tracing](https://weaveos.com/glossary/distributed-tracing)

[How distributed tracing follows a request across services, what spans contain, and why trace context matters for debugging.](https://weaveos.com/glossary/distributed-tracing)

### [Trace context](https://weaveos.com/glossary/trace-context)

[What trace context carries between services, how propagation connects spans, and what breaks when context is lost.](https://weaveos.com/glossary/trace-context)
