| Constructor and Description |
|---|
ConstantSampler(boolean decision)
Constructor for ConstantSampler.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEarly()
Whether this sampler performs early or head based sampling.
|
boolean |
sample(java.lang.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 ConstantSampler(boolean decision)
Constructor for ConstantSampler.
decision - a booleanpublic boolean sample(java.lang.String operationName,
long traceId,
long duration)
public boolean isEarly()
public void setDecision(boolean decision)
decision - the sampling decisionCopyright © 2023. All rights reserved.