ThreadLocalTracingContext
public interface TracingContext
Tracer
.
In most cases, the ThreadLocalTracingContext
will be preferrable, and indeed is the default when no special
configuration is given. However, in certain cases (eg. when tracing inside a multi-threaded monolithic application),
more complex span tracking may be needed in order to overcome ThreadLocal
limitations with long-running
thread pools.
Tracer
Modifier and Type | Method | Description |
---|---|---|
Deque<TracerSpan> |
get() |
Return the stack of spans in the current trace (for this service).
|
boolean |
isEmpty() |
Check whether the current Span stack if empty.
|
TracerSpan |
peekFirst() |
Grab the latest Span in the current stack without removing it.
|
TracerSpan |
peekLast() |
Grab the founding Span in the current stack without removing it.
|
TracerSpan |
pop() |
Pop the latest Span off the stack for the current service trace and return it.
|
void |
push(TracerSpan span) |
Add a new Span to the current service-scope of the trace.
|
int |
size() |
The size of the current span stack
|
Deque<TracerSpan> get()
Deque
of spans. Never null.int size()
TracerSpan peekLast()
TracerSpan peekFirst()
boolean isEmpty()
void push(TracerSpan span)
span
- The span to addTracerSpan pop()
Copyright © 2019–2020 Honeycomb. All rights reserved.