@Singleton @Requires(beans=io.opentracing.Tracer.class) public class TracingRunnableInstrumenter extends Object implements Function<Runnable,Runnable>, RunnableInstrumenter
TracingRunnable.| Constructor and Description | 
|---|
TracingRunnableInstrumenter(io.opentracing.Tracer tracer)
Create a function that instrument an existing Runnable. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Runnable | 
apply(Runnable runnable)  | 
Runnable | 
instrument(Runnable command)
Implementors can override to instrument a Runnable. 
 | 
public TracingRunnableInstrumenter(io.opentracing.Tracer tracer)
tracer - For span creation and propagation across arbitrary transportspublic Runnable instrument(Runnable command)
RunnableInstrumenterinstrument in interface RunnableInstrumentercommand - The command to instrument