use of com.navercorp.pinpoint.grpc.trace.PSpanChunk in project pinpoint by naver.
the class CollectorGrpcSpanFactoryTest method buildSpanChunkBo_compact_depth.
@Test
public void buildSpanChunkBo_compact_depth() {
final PSpanChunk chunk = newSpanChunk_compact_depth();
final Header header = newHeader();
SpanChunkBo spanChunkBo = factory.buildSpanChunkBo(chunk, header);
List<SpanEventBo> spanEventBoList = spanChunkBo.getSpanEventBoList();
SpanEventBo spanEventBo0 = spanEventBoList.get(0);
SpanEventBo spanEventBo1 = spanEventBoList.get(1);
Assert.assertEquals(1, spanEventBo0.getDepth());
Assert.assertEquals(1, spanEventBo1.getDepth());
}
Aggregations