java.lang.Runnablebrave.propagation.CurrentTraceContext@Deprecated
public abstract class BraveRunnable
extends java.lang.Object
implements java.lang.Runnable
Runnable implementation that wraps another Runnable and makes sure the wrapped Runnable will be executed in the
same Span/Trace context as the thread from which the Runnable was executed.
Is used by BraveExecutorService.BraveExecutorService| Constructor | Description |
|---|---|
BraveRunnable() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
static BraveRunnable |
create(java.lang.Runnable runnable,
ServerSpanThreadBinder serverSpanThreadBinder) |
Deprecated.
use
wrap(Runnable, Brave) because this constructor loses thread
state for local span parents. |
void |
run() |
Deprecated.
|
static BraveRunnable |
wrap(java.lang.Runnable runnable,
Brave brave) |
Deprecated.
|
public static BraveRunnable wrap(java.lang.Runnable runnable, Brave brave)
@Deprecated public static BraveRunnable create(java.lang.Runnable runnable, ServerSpanThreadBinder serverSpanThreadBinder)
wrap(Runnable, Brave) because this constructor loses thread
state for local span parents.public void run()
run in interface java.lang.RunnableCopyright © 2018 OpenZipkin. All rights reserved.