use of com.navercorp.pinpoint.profiler.sampler.BasicTraceSampler in project pinpoint by naver.
the class TraceSamplerProvider method get.
@Override
public TraceSampler get() {
logger.info("new BasicTraceSampler()");
TraceSampler traceSampler = new BasicTraceSampler(idGenerator, sampler);
final int samplingNewThroughput = contextConfig.getSamplingNewThroughput();
final int samplingContinueThroughput = contextConfig.getSamplingContinueThroughput();
if (samplingNewThroughput > 0 || samplingContinueThroughput > 0) {
traceSampler = new RateLimitTraceSampler(samplingNewThroughput, samplingContinueThroughput, idGenerator, traceSampler);
logger.info("new RateLimitTraceSampler {}/{}", samplingNewThroughput, samplingContinueThroughput);
}
return traceSampler;
}
Aggregations