Search in sources :

Example 1 with DefaultSpanChunkFactory

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;
}
Also used : SpanChunk(com.navercorp.pinpoint.profiler.context.SpanChunk) TSpanChunk(com.navercorp.pinpoint.thrift.dto.TSpanChunk) DefaultSpanChunkFactory(com.navercorp.pinpoint.profiler.context.DefaultSpanChunkFactory) SpanChunkFactory(com.navercorp.pinpoint.profiler.context.SpanChunkFactory) SpanEvent(com.navercorp.pinpoint.profiler.context.SpanEvent) TSpanEvent(com.navercorp.pinpoint.thrift.dto.TSpanEvent) DefaultSpanChunkFactory(com.navercorp.pinpoint.profiler.context.DefaultSpanChunkFactory)

Example 2 with DefaultSpanChunkFactory

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);
}
Also used : HeaderTBaseSerializer(com.navercorp.pinpoint.thrift.io.HeaderTBaseSerializer) DefaultSpanChunkFactory(com.navercorp.pinpoint.profiler.context.DefaultSpanChunkFactory) HeaderTBaseSerializerPoolFactory(com.navercorp.pinpoint.profiler.sender.HeaderTBaseSerializerPoolFactory) BeforeClass(org.junit.BeforeClass)

Aggregations

DefaultSpanChunkFactory (com.navercorp.pinpoint.profiler.context.DefaultSpanChunkFactory)2 SpanChunk (com.navercorp.pinpoint.profiler.context.SpanChunk)1 SpanChunkFactory (com.navercorp.pinpoint.profiler.context.SpanChunkFactory)1 SpanEvent (com.navercorp.pinpoint.profiler.context.SpanEvent)1 HeaderTBaseSerializerPoolFactory (com.navercorp.pinpoint.profiler.sender.HeaderTBaseSerializerPoolFactory)1 TSpanChunk (com.navercorp.pinpoint.thrift.dto.TSpanChunk)1 TSpanEvent (com.navercorp.pinpoint.thrift.dto.TSpanEvent)1 HeaderTBaseSerializer (com.navercorp.pinpoint.thrift.io.HeaderTBaseSerializer)1 BeforeClass (org.junit.BeforeClass)1