public interface AbstractTracerContext
AbstractTracerContext represents the tracer context manager.| Modifier and Type | Method and Description |
|---|---|
AbstractSpan |
activeSpan() |
void |
asyncStop(AsyncSpan span)
The given span could be stopped officially.
|
AbstractTracerContext |
awaitFinishAsync()
Notify this context, current span is going to be finished async in another thread.
|
ContextSnapshot |
capture()
Capture a snapshot for cross-thread propagation.
|
void |
continued(ContextSnapshot snapshot)
Build the reference between this segment and a cross-thread segment.
|
AbstractSpan |
createEntrySpan(String operationName)
Create an entry span
|
AbstractSpan |
createExitSpan(String operationName,
String remotePeer)
Create an exit span
|
AbstractSpan |
createLocalSpan(String operationName)
Create a local span
|
void |
extract(ContextCarrier carrier)
Build the reference between this segment and a cross-process segment.
|
String |
getReadableGlobalTraceId()
Get the global trace id, if needEnhance.
|
void |
inject(ContextCarrier carrier)
Prepare for the cross-process propagation.
|
boolean |
stopSpan(AbstractSpan span)
Finish the given span, and the given span should be the active span of current tracing context(stack)
|
void inject(ContextCarrier carrier)
carrier - to carry the context for crossing process.void extract(ContextCarrier carrier)
carrier - carried the context from a cross-process segment.ContextSnapshot capture()
ContextSnapshot , which includes the reference context.void continued(ContextSnapshot snapshot)
snapshot - from capture() in the parent thread.String getReadableGlobalTraceId()
AbstractSpan createEntrySpan(String operationName)
operationName - most likely a service nameAbstractSpan createLocalSpan(String operationName)
operationName - most likely a local method signature, or business name.AbstractSpan createExitSpan(String operationName, String remotePeer)
operationName - most likely a service name of remoteremotePeer - the network id(ip:port, hostname:port or ip1:port1,ip2,port, etc.)AbstractSpan activeSpan()
boolean stopSpan(AbstractSpan span)
span - to finishAbstractTracerContext awaitFinishAsync()
void asyncStop(AsyncSpan span)
span - to be stopped.Copyright © 2019 The Apache Software Foundation. All rights reserved.