public class ProducerInfoUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProducerInfoUtil.Origin
Container for details about the origin node.
|
| 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 ProducerInfo |
getProducerInfo(String tenantId,
Span serverSpan,
SpanCache spanCache)
This method attempts to derive the Producer Information for the supplied server
span.
|
static void |
initialise(String tenantId,
List<Trace> items,
ProducerInfoCache producerInfoCache)
This method initialises producer information associated with the supplied
traces.
|
protected static void |
initialiseProducerInfo(List<ProducerInfo> producerInfoList,
String tenantId,
Trace trace,
ProducerInfoUtil.Origin origin,
Node node,
ProducerInfoCache producerInfoCache)
This method initialises an individual node within a trace.
|
public static void initialise(String tenantId, List<Trace> items, ProducerInfoCache producerInfoCache) throws RetryAttemptException
tenantId - items - producerInfoCache - The cacheRetryAttemptException - Failed to initialise producer informationprotected static void initialiseProducerInfo(List<ProducerInfo> producerInfoList, String tenantId, Trace trace, ProducerInfoUtil.Origin origin, Node node, ProducerInfoCache producerInfoCache)
producerInfoList - The producer info listtenantId - The tenant idtrace - The traceorigin - The origin node informationnode - The nodeproducerInfoCache - The cacheprotected static Span findRootOrServerSpan(String tenantId, Span span, SpanCache spanCache)
tenantId - The tenant idspan - The client spanspanCache - The span cachepublic static ProducerInfo getProducerInfo(String tenantId, Span serverSpan, SpanCache spanCache)
tenantId - The tenant idserverSpan - The server spanspanCache - The cacheCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.