use of com.navercorp.pinpoint.thrift.dto.TSpanChunk in project pinpoint by naver.
the class SpanPostProcessorTest method postProcess2.
@Test
public void postProcess2() {
SpanProcessor<TSpan, TSpanChunk> spanChunkPostProcessor = new SpanProcessorV1();
TraceRoot internalTraceId = newInternalTraceId();
List<TSpanEvent> tSpanEvents = new ArrayList<TSpanEvent>();
TSpanChunk tSpanChunk = new TSpanChunk();
tSpanChunk.setSpanEventList(tSpanEvents);
List<SpanEvent> spanEvents = new ArrayList<SpanEvent>();
SpanChunk spanChunk = new DefaultSpanChunk(internalTraceId, spanEvents);
// one spanEvent
addSpanEvent(tSpanEvents, spanEvents);
spanChunkPostProcessor.postProcess(spanChunk, tSpanChunk);
// two spanEvent
addSpanEvent(tSpanEvents, spanEvents);
spanChunkPostProcessor.postProcess(spanChunk, tSpanChunk);
// three
addSpanEvent(tSpanEvents, spanEvents);
spanChunkPostProcessor.postProcess(spanChunk, tSpanChunk);
}
Aggregations