mdc

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

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

See also