use of com.navercorp.pinpoint.profiler.context.id.AtomicIdGenerator in project pinpoint by naver.
the class ThroughputSamplerTest method newTraceSampler.
private TraceSampler newTraceSampler(int throughput) {
IdGenerator atomicIdGenerator = new AtomicIdGenerator();
Sampler trueSampler = TrueSampler.INSTANCE;
TraceSampler basicSampler = new BasicTraceSampler(atomicIdGenerator, trueSampler);
return new RateLimitTraceSampler(throughput, 0, atomicIdGenerator, basicSampler);
}
use of com.navercorp.pinpoint.profiler.context.id.AtomicIdGenerator in project pinpoint by naver.
the class DefaultTransactionCounterTest method setUp.
@Before
public void setUp() throws Exception {
this.idGenerator = new AtomicIdGenerator();
this.transactionCounter = new DefaultTransactionCounter(this.idGenerator);
}
Aggregations