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