I faced the problem to trace logs while using Kotlin. I want to use Kotlin Coroutine in our program. But apm-java-agent hasn't support it yet. Of course, Kotlin is 100% compatible with Java.
That's why I can use ExecutorService but want to use Kotlin Coroutine if possible because it seems to be lighter than a thread.
Is there any plan to support this package in the near future?
Hi and welcome to the forum
Kotlin Coroutines are not on our near-term roadmap yet. You could either contribute a plugin for that or use the API to manually propagate the trace context by getting the current span (ElasticApm.currentSpan()
) before calling the coroutine and activating the span in the coroutine: https://www.elastic.co/guide/en/apm/agent/java/current/public-api.html#api-span-activate
1 Like
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.