use of com.navercorp.pinpoint.profiler.context.DefaultSpanChunkFactory in project pinpoint by naver.
the class SpanStreamUDPSenderTest method createSpanChunk.
private SpanChunk createSpanChunk(int spanEventSize) throws InterruptedException {
SpanChunkFactory spanChunkFactory = new DefaultSpanChunkFactory("applicationName", "agentId", 0, ServiceType.STAND_ALONE);
List<SpanEvent> originalSpanEventList = createSpanEventList(spanEventSize);
SpanChunk spanChunk = spanChunkFactory.create(originalSpanEventList);
return spanChunk;
}
use of com.navercorp.pinpoint.profiler.context.DefaultSpanChunkFactory in project pinpoint by naver.
the class SpanChunkStreamSendDataPlanerTest method setUp.
@BeforeClass
public static void setUp() {
HeaderTBaseSerializerPoolFactory serializerFactory = new HeaderTBaseSerializerPoolFactory(true, 1000, true);
objectPool = new ObjectPool<HeaderTBaseSerializer>(serializerFactory, 16);
spanChunkFactory = new DefaultSpanChunkFactory("applicationName", "agentId", 0, ServiceType.STAND_ALONE);
}
Aggregations