public class ProbabilityBasedSampler
extends brave.sampler.Sampler
Taken from CountingTraceIdSampler class from Zipkin project.
This counts to see how many out of 100 traces should be retained. This means that it is accurate in units of 100 traces.| Constructor and Description |
|---|
ProbabilityBasedSampler(Supplier<Float> probability) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSampled(long traceId) |
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.