dd-trace-java icon indicating copy to clipboard operation
dd-trace-java copied to clipboard

Kotlin coroutine instrumentation missing spans in trace

Open wcchoi opened this issue 1 year ago • 0 comments

Hi, I am noticing some spans in a trace are missing when enabling Kotlin coroutine instrumentation, eg when withTimeout or flowOn are used

Without enabling Kotlin coroutine instrumentation, traces are random because the datadog java agent uses ThreadLocals to store some states and coroutine could move between threads

This is a repo to reproduce the issue https://github.com/wcchoi/test-datadog-agent-coroutine

wcchoi avatar Jun 19 '24 07:06 wcchoi