Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin coroutine instrumentation missing spans in trace #7215

Open
wcchoi opened this issue Jun 19, 2024 · 0 comments
Open

Kotlin coroutine instrumentation missing spans in trace #7215

wcchoi opened this issue Jun 19, 2024 · 0 comments

Comments

@wcchoi
Copy link

wcchoi commented Jun 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant