Structs§
- Tracing
Sample Options - Tracing
Sample Rule - Determine the sampling rate of a span according to the
rulesprovided inRuleSampler. For spans that do not hit anyrules, thedefault_ratiois 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
TraceIdand sampling rate (i.e.prob).