Mdc

uk.gov.hmrc.mdc.Mdc
See theMdc companion object
trait Mdc

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Mdc

Members list

Value members

Concrete methods

def mdcData: Map[String, String]
def preservingMdc[A](block: => Future[A])(implicit ec: ExecutionContext): Future[A]

Restores MDC data to the continuation of a block, which may be discarding MDC data (e.g. uses a different execution context)

Restores MDC data to the continuation of a block, which may be discarding MDC data (e.g. uses a different execution context)

Attributes

def putMdc(mdc: Map[String, String]): Unit
def withMdc[A](block: => Future[A], mdcData: Map[String, String])(implicit ec: ExecutionContext): Future[A]