public class LocalSpan extends AbstractTracingSpan
LocalSpan represents a normal tracing point, such as a local method.componentId, componentName, context, endTime, errorOccurred, isInAsyncMode, layer, logs, operationId, operationName, parentSpanId, refs, spanId, startTime, tags| Constructor and Description |
|---|
LocalSpan(int spanId,
int parentSpanId,
int operationId) |
LocalSpan(int spanId,
int parentSpanId,
String operationName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEntry() |
boolean |
isExit() |
LocalSpan |
log(Throwable t)
Record an exception event of the current walltime timestamp.
|
AbstractSpan |
setPeer(String remotePeer) |
LocalSpan |
tag(String key,
String value)
Set a key:value tag on the Span.
|
asyncFinish, errorOccurred, finish, getOperationId, getOperationName, getSpanId, log, prepareForAsync, ref, setComponent, setComponent, setLayer, setOperationId, setOperationName, start, start, tag, transformpublic LocalSpan(int spanId,
int parentSpanId,
int operationId)
public LocalSpan(int spanId,
int parentSpanId,
String operationName)
public LocalSpan tag(String key, String value)
AbstractTracingSpantag in interface AbstractSpantag in class AbstractTracingSpanpublic LocalSpan log(Throwable t)
AbstractTracingSpanlog in interface AbstractSpanlog in class AbstractTracingSpant - any subclass of Throwable, which occurs in this span.public boolean isEntry()
public boolean isExit()
public AbstractSpan setPeer(String remotePeer)
Copyright © 2019 The Apache Software Foundation. All rights reserved.