public class TraceTree extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
TraceTree(Collection<Span> spans)
Create a new TraceTree
|
Modifier and Type | Method and Description |
---|---|
Collection<Span> |
getRoots() |
Collection<Span> |
getSpans() |
com.google.common.collect.Multimap<Long,Span> |
getSpansByParentIdMap() |
com.google.common.collect.Multimap<String,Span> |
getSpansByPidMap() |
public TraceTree(Collection<Span> spans)
spans
- The collection of spans to use to create this TraceTree. Should
have at least one root span (span with parentId =
Span.ROOT_SPAN_IDpublic Collection<Span> getSpans()
public com.google.common.collect.Multimap<Long,Span> getSpansByParentIdMap()
public Collection<Span> getRoots()
Copyright © 2014. All rights reserved.