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

Support Kotlin Coroutines #1963

Open
bastrich opened this issue Aug 6, 2021 · 2 comments
Open

Support Kotlin Coroutines #1963

bastrich opened this issue Aug 6, 2021 · 2 comments
Labels
agent-java community Issues and PRs created by the community instrumentation Instrumentation: framework support, custom plugins, ... new-feature New feature

Comments

@bastrich
Copy link

bastrich commented Aug 6, 2021

Currently Elastic Apm Java Agent doesn't support tracing context inside Kotlin Coroutines. And when you use Elastic Apm in Kotlin project, tracing doesn't work inside coroutines. So it would be quite useful to have Elastic Apm suppurt for Kotlin Coroutines.

I think the best solution is to implement Elastic Apm Java Agent Plugin for supporting Kotlin Coroutines.

Alternatively we can pass tracing context manually to kotlin coroutine context. But that doesn't allow other plugins to work correctly and adds a lot of boilerplate code.

@github-actions github-actions bot added agent-java community Issues and PRs created by the community labels Aug 6, 2021
@SylvainJuge SylvainJuge added instrumentation Instrumentation: framework support, custom plugins, ... new-feature New feature labels Aug 25, 2021
@samuelbirocchi
Copy link

Any news on this?

@jackshirazi
Copy link
Contributor

Hi Kotliners. It's unlikely that Elastic will put resources into this any time soon. Ideally the Kotlin community would add this into the agent. Here's some options

  1. We've recently published a Plugin API with examples which maybe would assist adding this capability
  2. Or more effortful would be a PR adding a plugin directly in the agent in this repo
  3. Elastic APM accepts OpenTelemetry comms, so if there is an OpenTelemetry Kotlin agent that instruments coroutines, that might be an option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-java community Issues and PRs created by the community instrumentation Instrumentation: framework support, custom plugins, ... new-feature New feature
Projects
None yet
Development

No branches or pull requests

4 participants