type Sampler …
type SamplingParameters …
type SamplingDecision …
const Drop …
const RecordOnly …
const RecordAndSample …
type SamplingResult …
type traceIDRatioSampler …
func (ts traceIDRatioSampler) ShouldSample(p SamplingParameters) SamplingResult { … }
func (ts traceIDRatioSampler) Description() string { … }
func TraceIDRatioBased(fraction float64) Sampler { … }
type alwaysOnSampler …
func (as alwaysOnSampler) ShouldSample(p SamplingParameters) SamplingResult { … }
func (as alwaysOnSampler) Description() string { … }
func AlwaysSample() Sampler { … }
type alwaysOffSampler …
func (as alwaysOffSampler) ShouldSample(p SamplingParameters) SamplingResult { … }
func (as alwaysOffSampler) Description() string { … }
func NeverSample() Sampler { … }
func ParentBased(root Sampler, samplers ...ParentBasedSamplerOption) Sampler { … }
type parentBased …
func configureSamplersForParentBased(samplers []ParentBasedSamplerOption) samplerConfig { … }
type samplerConfig …
type ParentBasedSamplerOption …
func WithRemoteParentSampled(s Sampler) ParentBasedSamplerOption { … }
type remoteParentSampledOption …
func (o remoteParentSampledOption) apply(config samplerConfig) samplerConfig { … }
func WithRemoteParentNotSampled(s Sampler) ParentBasedSamplerOption { … }
type remoteParentNotSampledOption …
func (o remoteParentNotSampledOption) apply(config samplerConfig) samplerConfig { … }
func WithLocalParentSampled(s Sampler) ParentBasedSamplerOption { … }
type localParentSampledOption …
func (o localParentSampledOption) apply(config samplerConfig) samplerConfig { … }
func WithLocalParentNotSampled(s Sampler) ParentBasedSamplerOption { … }
type localParentNotSampledOption …
func (o localParentNotSampledOption) apply(config samplerConfig) samplerConfig { … }
func (pb parentBased) ShouldSample(p SamplingParameters) SamplingResult { … }
func (pb parentBased) Description() string { … }