Search in sources :

Example 1 with BasicTraceSampler

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;
}
Also used : BasicTraceSampler(com.navercorp.pinpoint.profiler.sampler.BasicTraceSampler) TraceSampler(com.navercorp.pinpoint.bootstrap.sampler.TraceSampler) RateLimitTraceSampler(com.navercorp.pinpoint.profiler.sampler.RateLimitTraceSampler) RateLimitTraceSampler(com.navercorp.pinpoint.profiler.sampler.RateLimitTraceSampler) BasicTraceSampler(com.navercorp.pinpoint.profiler.sampler.BasicTraceSampler)

Aggregations

TraceSampler (com.navercorp.pinpoint.bootstrap.sampler.TraceSampler)1 BasicTraceSampler (com.navercorp.pinpoint.profiler.sampler.BasicTraceSampler)1 RateLimitTraceSampler (com.navercorp.pinpoint.profiler.sampler.RateLimitTraceSampler)1