use of com.navercorp.pinpoint.common.server.bo.LocalAsyncIdBo in project pinpoint by naver.
the class CallStackMock method push.
public void push() {
final SpanEventBo spanEvent = new SpanEventBo();
final int startElapsed = (int) (currentTime - spanBo.getStartTime());
currentTime++;
spanEvent.setStartElapsed(startElapsed);
spanEvent.setSequence(sequence++);
checkExtend(index + 1);
stack[index++] = spanEvent;
if (this.latestStackIndex != this.index) {
this.latestStackIndex = this.index;
spanEvent.setDepth(this.latestStackIndex);
}
final SpanEventAlign spanEventAlign;
if (this.async) {
LocalAsyncIdBo localAsyncIdBo = new LocalAsyncIdBo(asyncId, 1);
SpanChunkBo spanChunkBo = new SpanChunkBo();
spanChunkBo.setLocalAsyncId(localAsyncIdBo);
spanEventAlign = new SpanChunkEventAlign(spanBo, spanChunkBo, spanEvent);
} else {
spanEventAlign = new SpanEventAlign(spanBo, spanEvent);
}
callTree.add(spanEvent.getDepth(), spanEventAlign);
}
Aggregations