MCPcopy
hub / github.com/grafana/tempo / probabilisticSampler

Struct probabilisticSampler

pkg/traceql/sampler.go:30–36  ·  view source on GitHub ↗

probabilisticSampler applies a fixed percentage. This exists primarily for benchmarking the adaptive approach.

Source from the content-addressed store, hash-verified

28// probabilisticSampler applies a fixed percentage. This exists primarily
29// for benchmarking the adaptive approach.
30type probabilisticSampler struct {
31 sample float64
32 curr int
33 lim int
34
35 sampled, skipped uint64
36}
37
38var _ Sampler = (*probabilisticSampler)(nil)
39

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected