Class RateLimitingSampler
- java.lang.Object
-
- brave.sampler.Sampler
-
- org.springframework.cloud.sleuth.brave.sampler.RateLimitingSampler
-
public class RateLimitingSampler extends brave.sampler.SamplerThe rate-limited sampler allows you to choose an amount of traces to accept on a per-second interval. The minimum number is 0 and the max is 2,147,483,647 (max int). You can read more about it inRateLimitingSampler- Since:
- 2.1.0
- Author:
- Marcin Grzejszczak
-
-
Constructor Summary
Constructors Constructor Description RateLimitingSampler(Supplier<Integer> rate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSampled(long traceId)
-