Skip to content

Kotlin coroutine instrumentation missing spans in trace #7215

@wcchoi

Description

@wcchoi

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions