Package | Description |
---|---|
brave | |
brave.sampler |
Modifier and Type | Method and Description |
---|---|
Tracing.Builder |
Tracing.Builder.sampler(Sampler sampler)
Sampler is responsible for deciding if a particular trace should be "sampled", i.e.
|
Tracer.Builder |
Tracer.Builder.sampler(Sampler sampler)
Deprecated.
|
Modifier and Type | Class and 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 and Description |
---|---|
static Sampler |
Sampler.ALWAYS_SAMPLE |
static Sampler |
Sampler.NEVER_SAMPLE |
Modifier and Type | Method and Description |
---|---|
static Sampler |
Sampler.create(float rate)
Returns a sampler, given a rate expressed as a percentage.
|
static Sampler |
CountingSampler.create(float rate) |
static Sampler |
BoundarySampler.create(float rate) |
Copyright © 2017 OpenZipkin. All rights reserved.