<How to pass traceId when creating new coroutine i...
# stackoverflow
u
How to pass traceId when creating new coroutine in sleuth? How to correctly pass the traceId when creating a new coroutine context? Currently the traceId and spanId is zero when launching a new coroutine. suspend fun test(event: TestEvent) { CoroutineScope(Dispatchers.IO).launch { (if anything logged here, it should have the same trace id) } }