| Package | Description |
|---|---|
| com.github.kristofa.brave |
| 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) |
| Modifier and Type | Method and Description |
|---|---|
abstract ClientTracer.Builder |
ClientTracer.Builder.traceSampler(Sampler sampler) |
abstract ServerTracer.Builder |
ServerTracer.Builder.traceSampler(Sampler sampler) |
Brave.Builder |
Brave.Builder.traceSampler(Sampler sampler) |
Copyright © 2016. All rights reserved.