package dispatchers
Type Members
- class MDCPropagatingExecutorService extends ExecutorServiceDelegate with MdcExecutorService
- class MDCPropagatingExecutorServiceConfigurator extends ExecutorServiceConfigurator
This provides an ExecutorService which copies MDC to the next execution.
This provides an ExecutorService which copies MDC to the next execution.
This can be enabled with.
config pekko.actor.default-dispatcher { executor = "uk.gov.hmrc.play.bootstrap.dispatchers.MDCPropagatingExecutorServiceConfigurator" } - class MdcPropagatingDispatcherConfigurator extends MessageDispatcherConfigurator
This provides an ExecutionContext which copies MDC data over in
prepare().This provides an ExecutionContext which copies MDC data over in
prepare(). Sinceprepare()is implicitly called byPromise#onComplete, MDC data will not be lost on many async boundaries. It may still be required to explicitly callprepare()in some scenarios (e.g. with pekko)This can be enabled with.
config pekko.actor.default-dispatcher { type = "uk.gov.hmrc.play.bootstrap.dispatchers.MdcPropagatingDispatcherConfigurator" } - trait MdcPropagatorExecutionContext extends ExecutionContext
propagates the logback MDC in future callbacks