Class Traces
java.lang.Object
codes.grow.packages.skywalking.tracing.query.Traces
Span ordering and tree helpers.
-
Method Summary
-
Method Details
-
sortSpans
Sorts spans bystartMicros, thenspanId.- Parameters:
spans- spans- Returns:
- new immutable sorted list
-
buildTree
Builds the span tree. Spans without a parent, or whose parent is not in the list, are roots. Cycles are broken by treating the first span of a cycle as a root.- Parameters:
spans- spans of one trace- Returns:
- root nodes in span order
-
summarize
Summarises a trace.- Parameters:
trace- trace- Returns:
- summary (root service and name from the first root span)
-