Anders Kirkeby02/17/2021, 3:08 PM
Dariusz Kuc02/17/2021, 3:28 PM
to store it (which MDC relies on). With WebFlux (which we use in
) you have reactor subscriber context (and coroutine context through interop).
execution logic we jump between reactor/coroutines and
which don't have any contextual information. One way to solve it is to create your custom
(https://github.com/ExpediaGroup/graphql-kotlin/blob/master/servers/graphql-kotlin-[…]tlin/com/expediagroup/graphql/server/execution/GraphQLServer.kt) which populates MDC (and other contextual data) and then wraps the execution in your coroutine context. You then would also need to create custom
(I'd extend https://github.com/ExpediaGroup/graphql-kotlin/blob/master/generator/graphql-kotli[…]expediagroup/graphql/generator/execution/FunctionDataFetcher.kt) that propagates the coroutine context when invoking suspendable functions.
Anders Kirkeby02/17/2021, 3:33 PM
Dariusz Kuc02/17/2021, 3:34 PM
Anders Kirkeby02/17/2021, 3:35 PM
Robert03/20/2021, 8:18 AM