public class TraceContext extends Object
| Constructor and Description |
|---|
TraceContext(APMSpan topSpan,
NodeBuilder rootNode,
TraceReporter reporter)
This constructor initialises the trace context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endProcessingNode()
This method indicates the end of processing a node within the trace
instance.
|
List<NodeProcessor> |
getNodeProcessors()
This method returns the node processors.
|
String |
getReportingLevel() |
EndpointRef |
getSourceEndpoint()
This method returns the source endpoint for the root trace fragment generated
by the service invocation.
|
APMSpan |
getTopSpan()
This method returns the top span associated with the traces involved in the current
service invocation.
|
String |
getTraceId()
This method returns the trace id.
|
String |
getTransaction() |
void |
setReportingLevel(String reportingLevel) |
void |
setTraceId(String traceId)
This method sets the trace id.
|
void |
setTransaction(String transaction) |
void |
startProcessingNode()
This method indicates the start of processing a node within the trace
instance.
|
public TraceContext(APMSpan topSpan, NodeBuilder rootNode, TraceReporter reporter)
topSpan - The top level span in the tracerootNode - The builder for the root node of the trace fragmentreporter - The trace reporterpublic void startProcessingNode()
public void endProcessingNode()
public String getTraceId()
public void setTraceId(String traceId)
traceId - The trace idpublic String getTransaction()
transaction - the transaction to setpublic void setTransaction(String transaction)
transaction - the transaction to setpublic String getReportingLevel()
public void setReportingLevel(String reportingLevel)
reportingLevel - the reportingLevel to setpublic List<NodeProcessor> getNodeProcessors()
public APMSpan getTopSpan()
public EndpointRef getSourceEndpoint()
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.