otel_sampler_trace_id_ratio_based (opentelemetry v1.0.0-rc.4) View Source

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

Specs

config()

Specs

probability() :: float().

Link to this section Functions

Specs

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

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

View Source