Currently, Tempo labels any spans with an empty parentSpanId field as the root span. In the above situation, Tempo would label whichever of the three spans is ingested last. Tempo should also check whether there is a link with attribute child of before labeling the span as the root span. The correct root span is bbb as it has no child of links.
Consider the following trace:
Currently, Tempo labels any spans with an empty parentSpanId field as the root span. In the above situation, Tempo would label whichever of the three spans is ingested last. Tempo should also check whether there is a link with attribute
child of
before labeling the span as the root span. The correct root span isbbb
as it has nochild of
links.