https://kotlinlang.org logo
#ktor
Title
# ktor
m

Morgan Pittkin

01/01/2022, 11:02 PM
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

Rustam Siniukov

01/03/2022, 1:17 PM
Ktor provides
CallId
plugin (docs https://ktor.io/docs/call-id.html)
2 Views