elastic / elastic/apm-agent-java

Support Kotlin Coroutines

オープン
#1,963 コメント 2 件 リアクション 6 件 担当者 0 名 GitHub で見る
agent-java community instrumentation new-feature
主要言語
Java
スター
593
フォーク
337
平均マージ
1日 13時間
マージ済み PR(30日)
25

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず Elastic APM Java Agent のプラグインアーキテクチャと、Kotlin Coroutines がコンテキストをどのように引き継ぐかを調査します。提案されているプラグインアプローチと、トレーシングコンテキストを手動で渡す方法を比較し、そのうえで、他のプラグインが正しく動作することを妨げずにコルーチン内でトレーシングが機能することを示すテストを定義します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, kotlin
領域
backend, observability-sre
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。