public class CompositeSampler extends java.lang.Object implements Sampler
| Constructor and Description |
|---|
CompositeSampler(java.util.List<Sampler> samplers)
Constructor for CompositeSampler.
|
| 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.
|
public CompositeSampler(java.util.List<Sampler> samplers)
Constructor for CompositeSampler.
samplers - a List objectCopyright © 2023. All rights reserved.