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> SpanTracer. nextSpan(SamplerFunction<T> samplerFunction, T arg)LikeTracer.nextSpan()except when there is no trace in process, the samplertriggersagainst the supplied argument.<T> ScopedSpanTracer. startScopedSpan(String name, SamplerFunction<T> samplerFunction, T arg)LikeTracer.startScopedSpan(String)except when there is no trace in process, the samplertriggersagainst the supplied argument. -
Uses of SamplerFunction in brave.sampler
Classes in brave.sampler that implement SamplerFunction Modifier and Type Class Description classDeclarativeSampler<M>This is an implementation of how to decide whether to trace a request using annotations on a java method.classParameterizedSampler<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.