@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)
RunnableInstrumenterinstrument in interface RunnableInstrumentercommand - The command to instrumentpublic Optional<RunnableInstrumenter> newInstrumentation()
ReactiveInstrumenternewInstrumentation in interface ReactiveInstrumenter