Search in sources :

Example 6 with PSpanChunk

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());
}
Also used : Header(com.navercorp.pinpoint.grpc.Header) SpanChunkBo(com.navercorp.pinpoint.common.server.bo.SpanChunkBo) PSpanChunk(com.navercorp.pinpoint.grpc.trace.PSpanChunk) SpanEventBo(com.navercorp.pinpoint.common.server.bo.SpanEventBo) Test(org.junit.Test)

Aggregations

PSpanChunk (com.navercorp.pinpoint.grpc.trace.PSpanChunk)6 SpanChunkBo (com.navercorp.pinpoint.common.server.bo.SpanChunkBo)4 SpanEventBo (com.navercorp.pinpoint.common.server.bo.SpanEventBo)4 Header (com.navercorp.pinpoint.grpc.Header)4 Test (org.junit.Test)4 AsyncSpanChunk (com.navercorp.pinpoint.profiler.context.AsyncSpanChunk)2 TraceId (com.navercorp.pinpoint.bootstrap.context.TraceId)1 VisibleForTesting (com.navercorp.pinpoint.common.annotations.VisibleForTesting)1 PLocalAsyncId (com.navercorp.pinpoint.grpc.trace.PLocalAsyncId)1 PSpan (com.navercorp.pinpoint.grpc.trace.PSpan)1 PSpanEvent (com.navercorp.pinpoint.grpc.trace.PSpanEvent)1 PTransactionId (com.navercorp.pinpoint.grpc.trace.PTransactionId)1 LocalAsyncId (com.navercorp.pinpoint.profiler.context.LocalAsyncId)1 Span (com.navercorp.pinpoint.profiler.context.Span)1 SpanChunk (com.navercorp.pinpoint.profiler.context.SpanChunk)1 SpanEvent (com.navercorp.pinpoint.profiler.context.SpanEvent)1 Shared (com.navercorp.pinpoint.profiler.context.id.Shared)1 TraceRoot (com.navercorp.pinpoint.profiler.context.id.TraceRoot)1