Nikky
private val exceptionHandler = CoroutineExceptionHandler { context, e -> GlobalScope.launch(MDCContext() + context) {
context.getCopyOfContextMap()
louiscad
gildor
how can i retrieve MDC from a CoroutineContext in a exception handler
CoroutineExceptionHandler { context, e -> val mdcMap = context[MDCContext]?.contextMap }
MDCContext(context[MDCContext.Key]?.contextMap)
context
muliyul
A modern programming language that makes developers happier.