public interface TracerContext
| Modifier and Type | Method and Description |
|---|---|
void |
annotate(String key,
String value)
Adds a key/value pair to the currently active span.
|
<T> T |
continueSpan(Traceable<T> traceable)
Picks up an currently detached span from another thread.
|
<T> T |
startSpan(String description)
Starts a new span in the current thread.
|
void |
timeline(String message)
Adds a timeline to the currently active span.
|
<T> Callable<T> |
wrap(String description,
Traceable<T> traceable)
Wraps the traceable into a new span, preserving the current span as a parent.
|
<T> T continueSpan(Traceable<T> traceable) throws Exception
traceable - traceable implementation to be executedException - any exception being thrown by the traceable implementation<T> T startSpan(String description)
description - span description<T> Callable<T> wrap(String description, Traceable<T> traceable)
description - span descriptiontraceable - traceable implementation to be wrappedvoid annotate(String key, String value)
key - key to addvalue - value to addvoid timeline(String message)
message - timeline messageApache CXF