Class BraveSamplerFunction<T>
java.lang.Object
org.springframework.cloud.sleuth.brave.bridge.BraveSamplerFunction<T>
- Type Parameters:
T- type of the input, for example a request or method
- All Implemented Interfaces:
org.springframework.cloud.sleuth.SamplerFunction<T>
public final class BraveSamplerFunction<T>
extends Object
implements org.springframework.cloud.sleuth.SamplerFunction<T>
Brave implementation of a
SamplerFunction.- Since:
- 3.0.0
- Author:
- Marcin Grzejszczak
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.cloud.sleuth.SamplerFunction
org.springframework.cloud.sleuth.SamplerFunction.Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic brave.sampler.SamplerFunction<brave.http.HttpRequest>toHttpBrave(org.springframework.cloud.sleuth.SamplerFunction<org.springframework.cloud.sleuth.http.HttpRequest> samplerFunction)
-
Constructor Details
-
BraveSamplerFunction
-
-
Method Details
-
trySample
- Specified by:
trySamplein interfaceorg.springframework.cloud.sleuth.SamplerFunction<T>
-
toHttpBrave
public static brave.sampler.SamplerFunction<brave.http.HttpRequest> toHttpBrave(org.springframework.cloud.sleuth.SamplerFunction<org.springframework.cloud.sleuth.http.HttpRequest> samplerFunction)
-