public class SourceInfoUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
protected static Span |
findRootOrServerSpan(String tenantId,
Span span,
SpanCache spanCache)
This method identifies the root or enclosing server span that contains the
supplied client span.
|
static List<SourceInfo> |
getSourceInfo(String tenantId,
List<Trace> items)
This method gets the source information associated with the supplied
traces.
|
static SourceInfo |
getSourceInfo(String tenantId,
Span serverSpan,
SpanCache spanCache)
This method attempts to derive the Source Information for the supplied server
span.
|
protected static void |
initialiseSourceInfo(List<SourceInfo> sourceInfoList,
String tenantId,
Trace trace,
StringBuffer parentNodeId,
int pos,
Node node)
This method initialises an individual node within a trace.
|
public static List<SourceInfo> getSourceInfo(String tenantId, List<Trace> items) throws RetryAttemptException
tenantId - The tenant iditems - The trace instancesRetryAttemptException - Failed to initialise source informationprotected static void initialiseSourceInfo(List<SourceInfo> sourceInfoList, String tenantId, Trace trace, StringBuffer parentNodeId, int pos, Node node)
sourceInfoList - The source info listtenantId - The tenant idtrace - The traceparentNodeId - The parent node idnode - The nodeprotected static Span findRootOrServerSpan(String tenantId, Span span, SpanCache spanCache)
tenantId - The tenant idspan - The client spanspanCache - The span cachepublic static SourceInfo getSourceInfo(String tenantId, Span serverSpan, SpanCache spanCache)
tenantId - The tenant idserverSpan - The server spanspanCache - The cacheCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.