View Source otel_sampler_trace_id_ratio_based (opentelemetry v1.5.0)
An otel_sampler
that samples a configured percentage of spans.
This sampler samples a configured percentage of spans, where the sampling decision is deterministic with respect to the span trace ID. That means the sampler always makes the same decision for the same trace ID.
This is one of the built-in samplers provided by the OpenTelemetry SDK.Summary
Types
The configuration for this sampler.
A probability on whether to sample a span, between
0.0
and 1.0
.Types
-type config() :: #{probability := probability(), id_upper_bound := integer()}.
-type probability() :: float().
0.0
and 1.0
.