public abstract class Span extends Object implements AutoCloseable, SpanData
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<AnnotationData> |
annotations |
| 限定符 | 构造器和说明 |
|---|---|
protected |
Span(com.google.common.base.Optional<BigInteger> parentSpanId,
BigInteger spanId,
String name,
BigInteger traceId,
long startTime,
long startNanos,
net.wicp.tams.common.tracer.TraceLevel traceLevel) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
addAnnotation(String name) |
abstract void |
addAnnotation(String name,
String message) |
protected abstract void |
afterClose() |
void |
close() |
void |
end() |
boolean |
equals(Object o) |
List<AnnotationData> |
getAnnotations() |
long |
getDuration() |
String |
getHost() |
String |
getName() |
com.google.common.base.Optional<BigInteger> |
getParentSpanId() |
Integer |
getPid() |
BigInteger |
getSpanId() |
long |
getStartTime() |
BigInteger |
getTraceId() |
int |
hashCode() |
String |
toString() |
protected final List<AnnotationData> annotations
protected Span(com.google.common.base.Optional<BigInteger> parentSpanId, BigInteger spanId, String name, BigInteger traceId, long startTime, long startNanos, net.wicp.tams.common.tracer.TraceLevel traceLevel)
public abstract void addAnnotation(String name)
protected abstract void afterClose()
public final void end()
public final void close()
close 在接口中 AutoCloseablepublic final BigInteger getTraceId()
getTraceId 在接口中 SpanDatapublic final BigInteger getSpanId()
public final com.google.common.base.Optional<BigInteger> getParentSpanId()
getParentSpanId 在接口中 SpanDatapublic final Integer getPid()
public final long getStartTime()
getStartTime 在接口中 SpanDatapublic final long getDuration()
getDuration 在接口中 SpanDatapublic final List<AnnotationData> getAnnotations()
getAnnotations 在接口中 SpanDataCopyright © 2018. All rights reserved.