Span stored in thread local.
| Modifier and Type | Field and Description |
|---|---|
| private final ThreadLocal | |
| private final Tracer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SpanAndScope | |
| private ArrayDeque | |
| public SpanAndScope | Returns: removed span ofnull if there was noneRemoves the current span from thread local and brings back the previous span to the current thread local. |
| public void |
| currentSpanInScopeStack | back to summary |
|---|---|
| private final ThreadLocal<ArrayDeque<SpanAndScope>> currentSpanInScopeStack | |
| tracer | back to summary |
|---|---|
| private final Tracer tracer | |
| ThreadLocalSpan | back to summary |
|---|---|
| public ThreadLocalSpan(Tracer tracer) Creates a new instance of
| |
| get | back to summary |
|---|---|
| public SpanAndScope get() Returns the currently stored span and scope.
| |
| getCurrentSpanInScopeStack | back to summary |
|---|---|
| private ArrayDeque | |
| remove | back to summary |
|---|---|
| public SpanAndScope remove() Removes the current span from thread local and brings back the previous span to the current thread local.
| |
| set | back to summary |
|---|---|
| public void set(Span span) Sets given span and scope.
| |