Interface Tracer
public interface Tracer
-
Method Summary
Modifier and Type Method Description voidaddSpan(TraceSpanDto span)voidaddThread(TraceThreadDto thread)voidappendToSpanInfo(String text)voidappendToThreadInfo(String text)default voidcreateAndStartThread(String name, long queueTimeMs)TracercreateChildTracer()voidcreateThread(String name, long queueTimeMs)voidfinishSpan()voidfinishThread()LonggetCurrentThreadId()IntegergetDiscardedSpanCount()IntegergetDiscardedThreadCount()booleangetForceSave()StringgetServerName()BlockingQueue<TraceSpanDto>getSpanQueue()BlockingQueue<TraceThreadDto>getThreadQueue()StringgetTraceId()voidincrementDiscardedSpanCount(int discardedSpanCount)voidincrementDiscardedThreadCount(int discardedThreadCount)voidsetForceSave()voidstartSpan(String name)voidstartThread()
-
Method Details
-
getServerName
String getServerName() -
getTraceId
String getTraceId() -
getThreadQueue
BlockingQueue<TraceThreadDto> getThreadQueue() -
getSpanQueue
BlockingQueue<TraceSpanDto> getSpanQueue() -
getCurrentThreadId
Long getCurrentThreadId() -
getDiscardedThreadCount
Integer getDiscardedThreadCount() -
incrementDiscardedThreadCount
void incrementDiscardedThreadCount(int discardedThreadCount) -
createAndStartThread
-
createThread
-
startThread
void startThread() -
addThread
-
appendToThreadInfo
-
finishThread
void finishThread() -
getDiscardedSpanCount
Integer getDiscardedSpanCount() -
startSpan
-
addSpan
-
appendToSpanInfo
-
finishSpan
void finishSpan() -
incrementDiscardedSpanCount
void incrementDiscardedSpanCount(int discardedSpanCount) -
getForceSave
boolean getForceSave() -
setForceSave
void setForceSave() -
createChildTracer
Tracer createChildTracer()
-