View Source otel_sampler_trace_id_ratio_based (opentelemetry v1.4.0)

This sampler samples a configured percentage of spans, where the sampling decision is deterministic with respect to the span trace id, i.e., it always makes the same decision for the same trace id.

Link to this section Summary

Link to this section Types

-type config() :: #{probability := probability(), id_upper_bound := integer()}.
-type probability() :: float().

Link to this section Functions

-spec setup(probability()) -> config().
Link to this function

should_sample(Ctx, TraceId, Links, SpanName, SpanKind, Attributes, _)

View Source