| Constructor and Description |
|---|
ConstantSampler(boolean decision) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEarly()
Whether this sampler performs early or head based sampling.
|
boolean |
sample(String operationName,
long traceId,
long duration)
Gets whether a span should be allowed given it's operation and trace id.
|
void |
setDecision(boolean decision)
Sets the decision for this sampler.
|
public boolean sample(String operationName, long traceId, long duration)
Samplerpublic boolean isEarly()
Samplerpublic void setDecision(boolean decision)
decision - the sampling decisionCopyright © 2020. All rights reserved.