Skip to main content

SamplerConfig

This class represents the configuration for a sampler. It allows specifying the parent sampler type and the trace ID ratio for trace ID ratio-based sampling.

Attributes

AttributeTypeDescription
ParentSampler[SamplerType](samplertype.md?sid=flytestdlib_otelutils_samplertype)Sets the parent sampler to use for the tracer.
TraceIDRatiofloat64Sets the trace id ratio for the TraceIdRatioBased sampler.