Hi, mb in this channel somebody could help me 😃
https://kotlinlang.slack.com/archives/C1CFAFJSK/p1605103613045600
I have a problem with retrieving a reactor context in suspend function (in general in spring webflux in route suspend function). Base example from docs doesn’t work, but I found that context could be retrieved by
val context = Mono.deferWithContext { ctx -> Mono.just(ctx) }.awaitFirst()
. Is it a right solution ?
n
nicholasnet
11/12/2020, 12:28 PM
Since you posted this in Spring room how you are using this in controller just wondering.
e
Evgeniy Zaharov
11/12/2020, 12:29 PM
in filter set
trace_id
in reactor context and later try to retrieve it in suspend function