Mdc

uk.gov.hmrc.play.http.logging.Mdc
object Mdc

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Mdc.type

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]