| Constructor and Description |
|---|
DurationSampler(long duration)
Constructor.
|
| 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 |
setDuration(long duration)
Sets the duration for this sampler.
|
public DurationSampler(long duration)
duration - The duration in milliseconds. Spans with durations higher than this are reported.public boolean sample(String operationName, long traceId, long duration)
Samplerpublic boolean isEarly()
Samplerpublic void setDuration(long duration)
duration - The duration in millisecondsCopyright © 2019. All rights reserved.