use of com.navercorp.pinpoint.common.server.bo.SpanEventBo in project pinpoint by naver.
the class SpanEventBitFieldTest method testStartElapsed_delta_next.
@Test
public void testStartElapsed_delta_next() throws Exception {
SpanEventBo prev = new SpanEventBo();
SpanEventBo current = new SpanEventBo();
prev.setStartElapsed(1234);
current.setStartElapsed(1235);
SpanEventBitField bitField = SpanEventBitField.build(current, prev);
Assert.assertEquals(bitField.getStartElapsedEncodingStrategy(), StartElapsedTimeEncodingStrategy.PREV_DELTA);
}
use of com.navercorp.pinpoint.common.server.bo.SpanEventBo in project pinpoint by naver.
the class SpanEventBitFieldTest method testNextSpanId_first.
@Test
public void testNextSpanId_first() throws Exception {
SpanEventBo spanEventBo = new SpanEventBo();
spanEventBo.setNextSpanId(1234);
SpanEventBitField bitField = SpanEventBitField.buildFirst(spanEventBo);
Assert.assertTrue(bitField.isSetNextSpanId());
bitField.setNextSpanId(false);
Assert.assertFalse(bitField.isSetNextSpanId());
}
use of com.navercorp.pinpoint.common.server.bo.SpanEventBo in project pinpoint by naver.
the class SpanEventBitFieldTest method testSequence_add1_next.
@Test
public void testSequence_add1_next() throws Exception {
SpanEventBo prev = new SpanEventBo();
SpanEventBo current = new SpanEventBo();
prev.setSequence((short) 10);
current.setSequence((short) 11);
SpanEventBitField bitField = SpanEventBitField.build(current, prev);
Assert.assertEquals(bitField.getSequenceEncodingStrategy(), SequenceEncodingStrategy.PREV_ADD1);
}
use of com.navercorp.pinpoint.common.server.bo.SpanEventBo in project pinpoint by naver.
the class SpanEventBitFieldTest method testRpc_first.
@Test
public void testRpc_first() throws Exception {
SpanEventBo spanEventBo = new SpanEventBo();
spanEventBo.setRpc("Rpc");
SpanEventBitField bitField = SpanEventBitField.buildFirst(spanEventBo);
Assert.assertFalse(bitField.isSetRpc());
}
use of com.navercorp.pinpoint.common.server.bo.SpanEventBo in project pinpoint by naver.
the class SpanMapperV2 method sortSpanEvent.
private void sortSpanEvent(List<SpanBo> spanBoList) {
for (SpanBo spanBo : spanBoList) {
List<SpanEventBo> spanEventBoList = spanBo.getSpanEventBoList();
spanEventBoList.sort(SpanEventComparator.INSTANCE);
}
}
Aggregations