Module brave
Package brave.sampler
-
Interface Summary Interface Description DeclarativeSampler.ProbabilityOfMethod<M> DeclarativeSampler.RateForMethod<M> Deprecated. since 5.8, useDeclarativeSampler.ProbabilityOfMethodDeclarativeSampler.RateOfMethod<M> Matcher<P> Returns true if this rule matches the input parametersSamplerFunction<T> Decides whether to start a new trace based on request properties such as an HTTP path. -
Class Summary Class Description 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.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.DeclarativeSampler<M> This is an implementation of how to decide whether to trace a request using annotations on a java method.Matchers Convenience functions to compose matchers forParameterizedSampler.ParameterizedSampler<P> This is an implementation of how to decide whether to trace a request using ordered rules.ParameterizedSampler.Builder<P> ParameterizedSampler.Rule<P> Deprecated. Since 5.8, useParameterizedSampler.Builder.putRule(Matcher, Sampler)RateLimitingSampler The rate-limited sampler allows you to choose an amount of traces to accept on a per-second interval.Sampler Sampler is responsible for deciding if a particular trace should be "sampled", i.e.SamplerFunctions Convenience sampling functions.