Package | Description |
---|---|
brave | |
brave.sampler |
Modifier and Type | Method | Description |
---|---|---|
abstract Sampler |
Tracing.sampler() |
Sampler is responsible for deciding if a particular trace should be "sampled", i.e.
|
Modifier and Type | Method | Description |
---|---|---|
Tracer.Builder |
Tracer.Builder.sampler(Sampler sampler) |
Deprecated.
|
Tracing.Builder |
Tracing.Builder.sampler(Sampler sampler) |
Sampler is responsible for deciding if a particular trace should be "sampled", i.e.
|
Tracer |
Tracer.withSampler(Sampler sampler) |
Use this to temporarily override the sampler used when starting new traces.
|
Modifier and Type | Class | Description |
---|---|---|
class |
BoundarySampler |
This sampler is appropriate for high-traffic instrumentation (ex edge web servers that each
receive >100K requests) who provision random trace ids, and make the sampling decision only once.
|
class |
CountingSampler |
This sampler is appropriate for low-traffic instrumentation (ex servers that each receive <100K
requests), or those who do not provision random trace ids.
|
Modifier and Type | Field | Description |
---|---|---|
static Sampler |
Sampler.ALWAYS_SAMPLE |
|
static Sampler |
Sampler.NEVER_SAMPLE |
Modifier and Type | Method | Description |
---|---|---|
static Sampler |
BoundarySampler.create(float rate) |
|
static Sampler |
CountingSampler.create(float rate) |
|
static Sampler |
Sampler.create(float rate) |
Returns a sampler, given a rate expressed as a percentage.
|
Sampler |
DeclarativeSampler.toSampler(M method) |
Used with
Tracer.withSampler(Sampler) to override the default sampling decision. |
Sampler |
DeclarativeSampler.toSampler(M method,
Sampler fallback) |
Like
DeclarativeSampler.toSampler(Object) , except allows a fallback decision, usually from
Tracing.sampler() , when there was no rate for an input |
Modifier and Type | Method | Description |
---|---|---|
Sampler |
DeclarativeSampler.toSampler(M method,
Sampler fallback) |
Like
DeclarativeSampler.toSampler(Object) , except allows a fallback decision, usually from
Tracing.sampler() , when there was no rate for an input |
Copyright © 2018 OpenZipkin. All rights reserved.