@Singleton @Requires(classes=org.slf4j.MDC.class) @Internal public final class MdcInstrumenter extends Object implements Function<Runnable,Runnable>, RunnableInstrumenter, ReactiveInstrumenter
Constructor and Description |
---|
MdcInstrumenter() |
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 Runnable instrument(Runnable command)
RunnableInstrumenter
instrument
in interface RunnableInstrumenter
command
- The command to instrumentpublic Optional<RunnableInstrumenter> newInstrumentation()
ReactiveInstrumenter
newInstrumentation
in interface ReactiveInstrumenter