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 SamplerTracing. 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.BuilderTracing.Builder. sampler(Sampler sampler)Sampler is responsible for deciding if a particular trace should be "sampled", i.e.TracerTracer. withSampler(Sampler sampler)Deprecated. -
Uses of Sampler in brave.sampler
Subclasses of Sampler in brave.sampler Modifier and Type Class Description classBoundarySamplerThis 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.classCountingSamplerThis sampler is appropriate for low-traffic instrumentation (ex servers that each receive <100K requests), or those who do not provision random trace ids.classRateLimitingSamplerThe 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 SamplerSampler. ALWAYS_SAMPLEstatic SamplerSampler. NEVER_SAMPLEMethods in brave.sampler that return Sampler Modifier and Type Method Description static SamplerBoundarySampler. create(float probability)static SamplerCountingSampler. create(float probability)static SamplerRateLimitingSampler. create(int tracesPerSecond)static SamplerSampler. create(float probability)Returns a sampler, given a probability expressed as a percentage.SamplerDeclarativeSampler. toSampler(M method)Deprecated.Since 5.8, useTracer.startScopedSpan(String, SamplerFunction, Object)SamplerDeclarativeSampler. 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.SamplerDeclarativeSampler. toSampler(M method, Sampler fallback)Deprecated.Since 5.8, useTracer.startScopedSpan(String, SamplerFunction, Object)