View Source otel_sampler_trace_id_ratio_based (opentelemetry v1.3.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

-opaque config()
-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