use of com.navercorp.pinpoint.common.server.bo.SpanChunkBo in project pinpoint by naver.
the class SpanFactoryTest method testBuildSpanChunkBo.
@Test
public void testBuildSpanChunkBo() {
TSpanChunk tSpanChunk = random.randomTSpanChunk();
TSpanEvent tSpanEvent1 = random.randomTSpanEvent((short) 0);
TSpanEvent tSpanEvent2 = random.randomTSpanEvent((short) 1);
TSpanEvent tSpanEvent3 = random.randomTSpanEvent((short) 5);
TSpanEvent tSpanEvent4 = random.randomTSpanEvent((short) 2);
tSpanChunk.setSpanEventList(Arrays.asList(tSpanEvent1, tSpanEvent2, tSpanEvent3, tSpanEvent4));
SpanChunkBo spanChunkBo = spanFactory.buildSpanChunkBo(tSpanChunk);
spanFactoryAssert.assertSpanChunk(tSpanChunk, spanChunkBo);
}
use of com.navercorp.pinpoint.common.server.bo.SpanChunkBo in project pinpoint by naver.
the class SpanFactoryTest method testNewSpanChunkBo.
@Test
public void testNewSpanChunkBo() {
TSpanChunk tSpanChunk = random.randomTSpanChunk();
SpanChunkBo spanChunkBo = spanFactory.newSpanChunkBo(tSpanChunk);
spanFactoryAssert.assertSpanChunk(tSpanChunk, spanChunkBo);
}
use of com.navercorp.pinpoint.common.server.bo.SpanChunkBo in project pinpoint by naver.
the class CollectorGrpcSpanFactoryTest method buildSpanChunkBo_sequence_overflow_NPE.
@Test
public void buildSpanChunkBo_sequence_overflow_NPE() {
final PSpanChunk chunk = newSpanChunk_overflow();
final Header header = newHeader();
SpanChunkBo spanChunkBo = factory.buildSpanChunkBo(chunk, header);
List<SpanEventBo> spanEventBoList = spanChunkBo.getSpanEventBoList();
Assert.assertTrue(spanEventBoList.isEmpty());
}
use of com.navercorp.pinpoint.common.server.bo.SpanChunkBo 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());
}
use of com.navercorp.pinpoint.common.server.bo.SpanChunkBo in project pinpoint by naver.
the class SpanEncoderTest method testEncodeSpanColumnValue_complexSpanChunk.
@Test
public void testEncodeSpanColumnValue_complexSpanChunk() throws Exception {
SpanChunkBo spanChunkBo = randomComplexSpanChunk();
assertSpanChunk(spanChunkBo);
}
Aggregations