@Singleton @Requires(beans=io.opentracing.Tracer.class) public class TracingRunnableInstrumenter extends Object implements Function<Runnable,Runnable>, RunnableInstrumenter, ReactiveInstrumenter
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.
|
Optional<RunnableInstrumenter> |
newInstrumentation()
An optional instrumentation.
|
public TracingRunnableInstrumenter(io.opentracing.Tracer tracer)
tracer
- For span creation and propagation across arbitrary transportspublic Runnable instrument(Runnable command)
RunnableInstrumenter
instrument
in interface RunnableInstrumenter
command
- The command to instrumentpublic Optional<RunnableInstrumenter> newInstrumentation()
ReactiveInstrumenter
newInstrumentation
in interface ReactiveInstrumenter