public static final class Sampler.ProbabilisticSampler extends Sampler
iSampled == abs(traceId) < boundary
While idempotent, this implementation's sample rate won't exactly match the input rate
because trace ids are not perfectly distributed across 64bits. For example, tests have shown an
error rate of 3% when trace ids are random.
Sampler.ProbabilisticSampler| Constructor and Description |
|---|
ProbabilisticSampler(float rate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSampled(long traceId)
Returns true if the trace ID should be recorded.
|
String |
toString() |
Copyright © 2015–2016 OpenZipkin. All rights reserved.