mdc

fun mdc(name: String, provider: (ApplicationCall) -> String?)

Put a diagnostic context value to MDC with the specified name and computed using provider function. A value will be available in MDC only during ApplicationCall lifetime and will be removed after call processing.