Class TraceSampler.NeverSampler
java.lang.Object
com.loomcache.server.tracing.TraceSampler.NeverSampler
- All Implemented Interfaces:
TraceSampler
- Enclosing interface:
TraceSampler
Never sample any traces.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface TraceSampler
TraceSampler.AlwaysSampler, TraceSampler.NeverSampler, TraceSampler.ProbabilisticSampler, TraceSampler.RateLimitedSampler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldSample(String traceId, String spanName) Determine if a span should be sampled.
-
Constructor Details
-
NeverSampler
public NeverSampler()
-
-
Method Details
-
shouldSample
Description copied from interface:TraceSamplerDetermine if a span should be sampled.- Specified by:
shouldSamplein interfaceTraceSampler- Parameters:
traceId- the trace IDspanName- the span name- Returns:
- true if the span should be sampled
-