public interface AbstractSpan extends AsyncSpan
AbstractSpan represents the span's skeleton, which contains all open methods.| Modifier and Type | Method and Description |
|---|---|
AbstractSpan |
errorOccurred() |
int |
getOperationId() |
String |
getOperationName() |
int |
getSpanId()
Get the id of span
|
boolean |
isEntry() |
boolean |
isExit() |
AbstractSpan |
log(long timestamp,
Map<String,?> event)
Record an event at a specific timestamp.
|
AbstractSpan |
log(Throwable t)
Record an exception event of the current walltime timestamp.
|
void |
ref(TraceSegmentRef ref)
Reference other trace segment.
|
AbstractSpan |
setComponent(Component component)
Set the component id, which defines in
ComponentsDefine |
AbstractSpan |
setComponent(String componentName)
Only use this method in explicit instrumentation, like opentracing-skywalking-bridge.
|
AbstractSpan |
setLayer(SpanLayer layer) |
AbstractSpan |
setOperationId(int operationId) |
AbstractSpan |
setOperationName(String operationName)
Sets the string name for the logical operation this span represents.
|
AbstractSpan |
setPeer(String remotePeer) |
AbstractSpan |
start()
Start a span.
|
AbstractSpan |
start(long startTime) |
AbstractSpan |
tag(AbstractTag tag,
String value) |
AbstractSpan |
tag(String key,
String value)
Deprecated.
|
asyncFinish, prepareForAsyncAbstractSpan setComponent(Component component)
ComponentsDefinecomponent - AbstractSpan setComponent(String componentName)
componentName - AbstractSpan setLayer(SpanLayer layer)
@Deprecated AbstractSpan tag(String key, String value)
AbstractSpan tag(AbstractTag tag, String value)
tag - value - AbstractSpan log(Throwable t)
t - any subclass of Throwable, which occurs in this span.AbstractSpan errorOccurred()
boolean isEntry()
boolean isExit()
AbstractSpan log(long timestamp, Map<String,?> event)
timestamp - The explicit timestamp for the log record.event - the eventsAbstractSpan setOperationName(String operationName)
AbstractSpan start()
int getSpanId()
int getOperationId()
String getOperationName()
AbstractSpan setOperationId(int operationId)
void ref(TraceSegmentRef ref)
ref - segment refAbstractSpan start(long startTime)
AbstractSpan setPeer(String remotePeer)
Copyright © 2019 The Apache Software Foundation. All rights reserved.