Search in sources :

Example 1 with SpanChunkFactory

use of com.navercorp.pinpoint.profiler.context.SpanChunkFactory 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)

Aggregations

DefaultSpanChunkFactory (com.navercorp.pinpoint.profiler.context.DefaultSpanChunkFactory)1 SpanChunk (com.navercorp.pinpoint.profiler.context.SpanChunk)1 SpanChunkFactory (com.navercorp.pinpoint.profiler.context.SpanChunkFactory)1 SpanEvent (com.navercorp.pinpoint.profiler.context.SpanEvent)1 TSpanChunk (com.navercorp.pinpoint.thrift.dto.TSpanChunk)1 TSpanEvent (com.navercorp.pinpoint.thrift.dto.TSpanEvent)1