@Singleton @Requires(classes=org.slf4j.MDC.class) @Internal public final class MdcInstrumenter extends Object implements Function<Runnable,Runnable>, RunnableInstrumenter, ReactiveInstrumenter, BeanCreatedEventListener<ExecutorService>
| 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.
|
ExecutorService |
onCreated(BeanCreatedEvent<ExecutorService> event)
Fired when a bean is created and all
PostConstruct initialization hooks have been
called. |
public Runnable instrument(Runnable command)
RunnableInstrumenterinstrument in interface RunnableInstrumentercommand - The command to instrumentpublic Optional<RunnableInstrumenter> newInstrumentation()
ReactiveInstrumenternewInstrumentation in interface ReactiveInstrumenterpublic ExecutorService onCreated(BeanCreatedEvent<ExecutorService> event)
BeanCreatedEventListenerPostConstruct initialization hooks have been
called.onCreated in interface BeanCreatedEventListener<ExecutorService>event - The bean created event