| Modifier and Type | Class and Description |
|---|---|
class |
AlwaysSampler
A Sampler that always returns true.
|
class |
CountSampler
Sampler that returns true every N calls.
|
class |
NeverSampler
A Sampler that never returns true.
|
class |
ProbabilitySampler
Sampler that returns true a certain percentage of the time.
|
| Modifier and Type | Field and Description |
|---|---|
static Sampler |
Sampler.ALWAYS |
static Sampler |
Sampler.NEVER |
| Modifier and Type | Method and Description |
|---|---|
Sampler |
Sampler.Builder.build() |
Sampler[] |
Tracer.getSamplers()
Returns an array of all the current Samplers.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Tracer.addSampler(Sampler sampler)
Add a new Sampler.
|
boolean |
Tracer.removeSampler(Sampler sampler)
Remove a SpanReceiver.
|
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.