Uses of Class
brave.sampler.Sampler
Package | Description |
---|---|
brave | |
brave.sampler |
-
Uses of Sampler in brave
Methods in brave that return Sampler Modifier and Type Method Description abstract Sampler
Tracing. sampler()
Sampler is responsible for deciding if a particular trace should be "sampled", i.e.Methods in brave with parameters of type Sampler Modifier and Type Method Description 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)
Deprecated. -
Uses of Sampler in brave.sampler
Subclasses of Sampler in brave.sampler 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.class
RateLimitingSampler
The rate-limited sampler allows you to choose an amount of traces to accept on a per-second interval.Fields in brave.sampler declared as Sampler Modifier and Type Field Description static Sampler
Sampler. ALWAYS_SAMPLE
static Sampler
Sampler. NEVER_SAMPLE
Methods in brave.sampler that return Sampler Modifier and Type Method Description static Sampler
BoundarySampler. create(float probability)
static Sampler
CountingSampler. create(float probability)
static Sampler
RateLimitingSampler. create(int tracesPerSecond)
static Sampler
Sampler. create(float probability)
Returns a sampler, given a probability expressed as a percentage.Sampler
DeclarativeSampler. toSampler(M method)
Deprecated.Since 5.8, useTracer.startScopedSpan(String, SamplerFunction, Object)
Sampler
DeclarativeSampler. toSampler(M method, Sampler fallback)
Deprecated.Since 5.8, useTracer.startScopedSpan(String, SamplerFunction, Object)
Methods in brave.sampler with parameters of type Sampler Modifier and Type Method Description ParameterizedSampler.Builder<P>
ParameterizedSampler.Builder. putRule(Matcher<P> matcher, Sampler sampler)
Adds or replaces the sampler of the input matcher.Sampler
DeclarativeSampler. toSampler(M method, Sampler fallback)
Deprecated.Since 5.8, useTracer.startScopedSpan(String, SamplerFunction, Object)