public class EntrySpan extends StackBasedTracingSpan
EntrySpan represents a service provider point, such as Tomcat server entrance.
It is a start point of TraceSegment, even in a complex application, there maybe have multi-layer entry point,
the EntrySpan only represents the first one.
But with the last EntrySpan's tags and logs, which have more details about a service provider.
Such as: Tomcat Embed - Dubbox The EntrySpan represents the Dubbox span.peer, peerId, stackDepthcomponentId, componentName, context, endTime, errorOccurred, isInAsyncMode, layer, logs, operationId, operationName, parentSpanId, refs, spanId, startTime, tags| Constructor and Description |
|---|
EntrySpan(int spanId,
int parentSpanId,
int operationId) |
EntrySpan(int spanId,
int parentSpanId,
String operationName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEntry() |
boolean |
isExit() |
EntrySpan |
log(Throwable t)
Record an exception event of the current walltime timestamp.
|
AbstractTracingSpan |
setComponent(Component component)
Set the component of this span, with internal supported.
|
AbstractTracingSpan |
setComponent(String componentName)
Set the component name.
|
AbstractTracingSpan |
setLayer(SpanLayer layer) |
AbstractTracingSpan |
setOperationId(int operationId)
Set the operation id, which compress by the name.
|
AbstractTracingSpan |
setOperationName(String operationName)
Set the operation name, just because these is not compress dictionary value for this name.
|
EntrySpan |
start()
Set the
AbstractTracingSpan.startTime, when the first start, which means the first service provided. |
EntrySpan |
tag(String key,
String value)
Set a key:value tag on the Span.
|
finish, setPeer, transformasyncFinish, errorOccurred, getOperationId, getOperationName, getSpanId, log, prepareForAsync, ref, start, tagpublic EntrySpan(int spanId,
int parentSpanId,
String operationName)
public EntrySpan(int spanId,
int parentSpanId,
int operationId)
public EntrySpan start()
AbstractTracingSpan.startTime, when the first start, which means the first service provided.start in interface AbstractSpanstart in class AbstractTracingSpanpublic EntrySpan tag(String key, String value)
AbstractTracingSpantag in interface AbstractSpantag in class AbstractTracingSpanpublic AbstractTracingSpan setLayer(SpanLayer layer)
setLayer in interface AbstractSpansetLayer in class AbstractTracingSpanpublic AbstractTracingSpan setComponent(Component component)
AbstractTracingSpansetComponent in interface AbstractSpansetComponent in class AbstractTracingSpanpublic AbstractTracingSpan setComponent(String componentName)
AbstractTracingSpansetComponent in interface AbstractSpansetComponent in class AbstractTracingSpanpublic AbstractTracingSpan setOperationName(String operationName)
AbstractTracingSpansetOperationName in interface AbstractSpansetOperationName in class AbstractTracingSpanpublic AbstractTracingSpan setOperationId(int operationId)
AbstractTracingSpansetOperationId in interface AbstractSpansetOperationId in class AbstractTracingSpanpublic EntrySpan 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()
Copyright © 2019 The Apache Software Foundation. All rights reserved.