Uses of Interface
brave.sampler.SamplerFunction
Package | Description |
---|---|
brave | |
brave.sampler |
-
Uses of SamplerFunction in brave
Methods in brave with parameters of type SamplerFunction Modifier and Type Method Description <T> Span
Tracer. nextSpan(SamplerFunction<T> samplerFunction, T arg)
LikeTracer.nextSpan()
except when there is no trace in process, the samplertriggers
against the supplied argument.<T> Span
Tracer. nextSpanWithParent(SamplerFunction<T> samplerFunction, T arg, TraceContext parent)
LikeTracer.nextSpan(SamplerFunction, Object)
except this controls the parent context explicitly.<T> ScopedSpan
Tracer. startScopedSpan(String name, SamplerFunction<T> samplerFunction, T arg)
LikeTracer.startScopedSpan(String)
except when there is no trace in process, the samplertriggers
against the supplied argument. -
Uses of SamplerFunction in brave.sampler
Classes in brave.sampler that implement SamplerFunction Modifier and Type Class Description class
DeclarativeSampler<M>
This is an implementation of how to decide whether to trace a request using annotations on a java method.class
ParameterizedSampler<P>
This is an implementation of how to decide whether to trace a request using ordered rules.Methods in brave.sampler that return SamplerFunction Modifier and Type Method Description static <T> SamplerFunction<T>
SamplerFunctions. deferDecision()
Ignores the argument and returns null.static <T> SamplerFunction<T>
SamplerFunctions. neverSample()
Ignores the argument and returns false.static <T> SamplerFunction<T>
SamplerFunctions. nullSafe(SamplerFunction<T> delegate)
Returns a function that returns null on null input instead of invoking the delegate with null.Methods in brave.sampler with parameters of type SamplerFunction Modifier and Type Method Description static <T> SamplerFunction<T>
SamplerFunctions. nullSafe(SamplerFunction<T> delegate)
Returns a function that returns null on null input instead of invoking the delegate with null.