
Trace sampling
Samples traces per trace ID at ingest, so each kept trace stays complete across all services.
We use essential functions to operate this website. With your consent, we would also use services for statistics and marketing. You decide which categories you allow and can change your choice at any time via “Cookie settings” in the footer. More in our privacy notice.
Obseria Consent Management · Your choice is stored for 12 months
Sample traces at ingest by trace ID, so every trace you keep stays complete across all services. Create metrics from all spans first, then decide how much to store.



Filter spans by name, service, attribute, errors or duration and see a time series with outliers and RED metrics.

For spans, rules run from sensitive data through spam filter and to-metric to sampling, before anything is stored.

Because the decision is made per trace ID, a stored trace contains every span of the request, with its attributes.

The query builder charts stored spans, for example the average duration per service, and can turn a query into a check rule.

Build an OpenTelemetry Collector configuration with receivers, processors and exporters for traces, metrics and logs.


Samples traces per trace ID at ingest, so each kept trace stays complete across all services.

Follows a request across all involved services and shows where the time is lost.
Learn more →
Accepts data in the open OpenTelemetry standard, without a proprietary agent.

Collects time series from applications and infrastructure and makes them queryable and comparable.
Learn more →Applications send spans via OpenTelemetry. Spans of the same request share a trace ID.
Earlier pipeline stages mask sensitive data and drop noise such as health-check spans.
A to-metric rule can turn spans into metrics before sampling, so rates and latencies are based on all spans.
The sampling rule decides by trace ID. All spans of a trace get the same decision, so kept traces stay complete.
Compare input and stored spans, see the impact per rule and adjust when rare paths go missing.
Obseria samples traces at ingest and bases the decision on the trace ID. Every span carries the ID of its trace, so all spans of one request receive the same decision, regardless of which service sent them or when they arrive.
The result is a smaller set of traces that are each complete: the frontend span, the API call, the database query and the message to the queue all belong to the same stored trace. There are no traces with silent gaps that would mislead an investigation.
Because the decision is made at ingest, nothing has to change in your applications. Existing OpenTelemetry instrumentation keeps sending spans as before.
Sampling is one stage of the Signal Control pipeline. For spans, the stages are sensitive data, spam filter, conversion to metrics, sampling and finally storage. Rules run from left to right, and within a stage from top to bottom.
That order matters. A to-metric rule placed before sampling sees every span, so request rates, error rates and latencies are calculated from the full data. The sampled traces that are stored afterwards serve as examples for debugging, not as the basis for counting.
In the same way, masking and spam rules run first, so sensitive values are removed and noise is dropped before any sampling decision.
The pipeline overview shows the input per signal, how much the rules reduced it and how much was stored. You can switch between the last hour, 24 hours, 7 days and 30 days to see whether a change had the intended effect.
Below the pipeline, a list shows the impact per rule: how many matches a rule had and what share it dropped. If the stored span volume drops more than expected, the culprit is easy to find.
Rules are created in the interface, imported as JSON or started from the suggestions tab, which points out where rules could help.
Kept traces appear in the tracing views as usual. The span list can be filtered by name, service, attributes, errors and duration, and shows a time series with outliers and RED metrics.
Opening a trace shows the waterfall with all its spans and their attributes. Because the trace was kept as a whole, every step of the request is there, from the browser click to the database query.
The query builder works on the stored spans too, for example to chart the average or p95 duration of a service over time.
Distributed tracing records every step of a request as a span: the HTTP call, the database query, the message sent to a queue. Spans that belong to the same request share a trace ID and together form a trace. In a busy system that adds up quickly. Thousands of requests per minute, each with dozens of spans, produce far more data than anyone will ever look at.
Trace sampling means keeping only part of these traces. The goal is to store enough traces to understand how the system behaves, find slow paths and debug errors, without paying for and searching through every single request.
There are three common places to sample, and they differ in what they know about a trace:
The biggest risk of naive sampling is broken traces. If each service decides on its own and keeps, say, every tenth span, a stored trace will have gaps: the frontend span is there, the database span is missing. Such traces are worse than none, because they look complete and mislead.
Sampling per trace ID avoids this. The decision depends only on the trace ID, so all spans of a trace get the same answer, no matter which service sent them or in which order they arrive. A trace is either kept completely or dropped completely.
There is no universal sampling rate. The right amount depends on traffic, the number of services and what you use traces for. A few questions help:
Start conservatively, measure, and reduce step by step. It is easier to lower a rate than to explain why the trace of a critical incident was not stored.
In Obseria, trace sampling is a rule in the Signal Control pipeline, which processes telemetry at ingest, before it is stored. Sampling works per trace ID, so every trace that is kept stays complete across all services.
The pipeline shows the stages for each signal side by side: sensitive data, spam filter, conversion to metrics, sampling, aggregation and what is finally stored. Rules run from left to right. For spans this means you can mask data, drop noise and create metrics from all spans before the sampling stage reduces the volume.
The overview shows the input, how much the rules removed and how much was stored, for the last hour, 24 hours, 7 or 30 days. A list of the impact per rule makes clear which rule removes how much. Rules can be created in the interface, imported as JSON, or started from the suggestions tab.
Sampled traces appear in the tracing views like any other trace: in span lists, as waterfall with all spans of the request, and in queries on span duration.
Sampling at ingest decides by trace ID, not by the content of a trace. Obseria does not offer tail-based sampling that keeps all error traces or all slow traces automatically. If you need that, run tail sampling in your own OpenTelemetry Collector before data reaches Obseria. Also keep in mind that data dropped by a rule is neither stored nor calculated later.
It keeps only part of the incoming traces. The decision is made at ingest, before storage, and is based on the trace ID, so every kept trace is complete across all services.
All spans of a request share the same trace ID. Deciding by that ID gives every span of a trace the same result, so you never store traces with missing spans.
Only if they are calculated from all spans. Place a to-metric rule before the sampling stage, or use metrics your services emit themselves. Counting stored traces after sampling gives a reduced picture.
No. Sampling happens at ingest in Obseria. Your OpenTelemetry instrumentation keeps sending spans as before.
Yes. If your SDK already samples, ingest sampling reduces the remaining volume further. Make sure both together still leave enough traces for rare paths.
The pipeline overview shows input, reduction and stored volume per signal for different time ranges, and the impact of every rule.
No. Sampling decides by trace ID, not by the content of a trace. To keep traces based on errors or latency, run tail sampling in your own OpenTelemetry Collector before sending data to Obseria.
Tail-based sampling, rules that keep traces by error status or duration, and adaptive sampling rates that adjust on their own. Dropped spans are neither stored nor available for later calculation.
The product home of pipelines, sampling, export and the audit trail.
→Follow a request across all services and see where time is lost.
→Filter, enrich, route and reduce telemetry before it is stored.
→Send traces with the open standard, without a proprietary agent.
→APM, endpoints and traces for the services you sample.
→In 30 minutes we show you how Obseria works in your environment and answer your questions on setup, privacy and pricing.
