I'm trying to add a requestId to my application lo...
# ktor
m
I'm trying to add a requestId to my application log, and it seems using a combination of slf4j’s MappedDiagnosticContext and ThreadContextElement might do the trick. Does anyone know how I might configure ktor so that I can customize the coroutine context for handling requests? Thanks!
r
Ktor provides
CallId
plugin (docs https://ktor.io/docs/call-id.html)