public interface SofaTraceContext
| 限定符和类型 | 方法和说明 |
|---|---|
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
|
void push(SofaTracerSpan span)
span - The span to be pushed onto the thread local stacked.SofaTracerSpan getCurrentSpan()
SofaTracerSpan pop()
int getThreadLocalSpanSize()
void clear()
boolean isEmpty()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.