Structs§
- 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§
- 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
).