Uses of Class
brave.sampler.Sampler
-
Packages that use 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)Use this to temporarily override the sampler used when starting new traces. -
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 rate)static SamplerCountingSampler. create(float rate)static SamplerRateLimitingSampler. create(int tracesPerSecond)static SamplerSampler. create(float rate)Returns a sampler, given a rate expressed as a percentage.SamplerDeclarativeSampler. toSampler(M method)Used withTracer.withSampler(Sampler)to override the default sampling decision.SamplerDeclarativeSampler. toSampler(M method, Sampler fallback)LikeDeclarativeSampler.toSampler(Object), except allows a fallback decision, usually fromTracing.sampler(), when there was no rate for an inputMethods in brave.sampler with parameters of type Sampler Modifier and Type Method Description SamplerDeclarativeSampler. toSampler(M method, Sampler fallback)LikeDeclarativeSampler.toSampler(Object), except allows a fallback decision, usually fromTracing.sampler(), when there was no rate for an input
-