public class SofaTracerThreadLocalTraceContext extends Object implements SofaTraceContext
| 构造器和说明 |
|---|
SofaTracerThreadLocalTraceContext() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear()
Clear current thread local span
|
SofaTracerSpan |
getCurrentSpan()
Retrieves the current span without modifying the TraceContext
|
int |
getThreadLocalSpanSize()
Retrieves the current span size stored in current thread local
|
boolean |
isEmpty()
Checks if their is any span set in the current TraceContext
|
SofaTracerSpan |
pop()
Removes a span from the TraceContext
|
void |
push(SofaTracerSpan span)
Adds the given span to the TraceContext
if the span is null ,then ignore pushed
|
public void push(SofaTracerSpan span)
SofaTraceContextpush 在接口中 SofaTraceContextspan - The span to be pushed onto the thread local stacked.public SofaTracerSpan getCurrentSpan() throws EmptyStackException
SofaTraceContextgetCurrentSpan 在接口中 SofaTraceContextEmptyStackExceptionpublic SofaTracerSpan pop() throws EmptyStackException
SofaTraceContextpop 在接口中 SofaTraceContextEmptyStackExceptionpublic int getThreadLocalSpanSize()
SofaTraceContextgetThreadLocalSpanSize 在接口中 SofaTraceContextpublic boolean isEmpty()
SofaTraceContextisEmpty 在接口中 SofaTraceContextpublic void clear()
SofaTraceContextclear 在接口中 SofaTraceContextCopyright © 2018 Pivotal Software, Inc.. All rights reserved.