1.补充建树时,当前层级的一级节点时,需要创建下级节点。
This commit is contained in:
parent
b1047bb878
commit
f2091ff125
|
|
@ -75,9 +75,7 @@ public class TraceSpanTree implements Writable {
|
|||
if (span.getLevelId() > 0) {
|
||||
TraceSpanNode foundNode = findNodeAndCreateVisualNodeIfNess(
|
||||
span.getParentLevel(), span.getLevelId() - 1);
|
||||
if (foundNode != null) {
|
||||
new TraceSpanNode(null, null, foundNode, foundNode.next(), span, spanContainer);
|
||||
}
|
||||
new TraceSpanNode(null, null, foundNode, foundNode.next(), span, spanContainer);
|
||||
} else {
|
||||
/**
|
||||
* levelId=0 find for parent level if parentLevelId = 0.0.1 then
|
||||
|
|
@ -92,6 +90,7 @@ public class TraceSpanTree implements Writable {
|
|||
TraceSpanNode foundNode = findNodeAndCreateVisualNodeIfNess(
|
||||
parentLevel.substring(0, idx),
|
||||
Integer.parseInt(parentLevel.substring(idx + 1)));
|
||||
new TraceSpanNode(foundNode, null, null, null, span, spanContainer);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue