Structs§
- Tracing
Sample Options - Tracing
Sample Rule - Determine the sampling rate of a span according to the
rules
provided inRuleSampler
. For spans that do not hit anyrules
, thedefault_ratio
is used.
Functions§
- create_
sampler - sample_
based_ 🔒on_ probability - The code here mainly refers to the relevant implementation of
opentelemetry,
and determines whether the span needs to be collected based on the
TraceId
and sampling rate (i.e.prob
).