Springboot metrics are "duplicated"
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java, spring-boot
調査の方向性
DataDog apm-tutorial-java-host の Jersey 例と、spring-guides gs-spring-boot の complete 例で dd-java-agent 1.51.1 を使用して動作を再現し、リクエストを送信した後のそれぞれのサービスカタログのオペレーションを比較します。Spring Boot 例で spring.handler が servlet.request の重複として表示されなくなるか、サービスビューの動作が別の形で記載された期待値に一致すれば、issue は完了です。
索引モデルが issue の本文から書いたものです。
説明
Tracer Version(s)
1.51.1
Java Version(s)
21
JVM Vendor
Eclipse Adoptium / Temurin
Bug Report
If i run the instrumented example from https://github.com/DataDog/apm-tutorial-java-host (springboot application using jersey annotations for controllers declaration),
java -javaagent:$HOME/Downloads/dd-java-agent-1.51.1.jar -Ddd.trace.sample.rate=1 -Ddd.service=notes -Ddd.env=dev -Ddd.version=0.0.1 -jar target/notes-0.0.1-SNAPSHOT.jar
I get only the servlet.request operation in the service catalog view, see:
If now i run the instrumented example from https://github.com/spring-guides/gs-spring-boot/tree/main/complete (springboot application using springboot annotations),
java -javaagent:$HOME/Downloads/dd-java-agent-1.51.1.jar -Ddd.trace.sample.rate=1 -Ddd.service=gs -Ddd.env=dev -Ddd.version=0.0.1 -jar target/spring-boot-complete-0.0.1-SNAPSHOT.jar
I get servlet.request and spring.handler operations in the service catalog view, see:
The spring.handler metric is somehow a duplicate of the servlet.request operations and leads to noisy service views where one has the feeling that everything is duplicated.
Expected Behavior
I would expect either the spring.handler metric to not be reported by the dd-java-agent or the service view to report only the servlet.request operation and not all
Reproduction Code
- Follow the guide: https://docs.datadoghq.com/tracing/trace_collection/automatic_instrumentation/dd_libraries/java/?tab=wget
- run the instrumented application (with dd-java-agent)
- execute some requests to populate notes service
- Login to datadog and goto APM/services page
- Select notes service
- it reports only the servlet.request operation
- Pull https://github.com/spring-guides/gs-spring-boot/tree/main/complete
- package the application
- run the instrumented application (with dd-java-agent)
- execute some requests to populate the service
- Goto service page: servlet.request and spring.handler operations are reported
- 主要言語
- Java
- スター
- 737
- フォーク
- 361
- 平均マージ
- 3日 20時間
- マージ済み PR(30日)
- 173
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DataDog/dd-trace-java のほかの issue
-
type: feature request
難易度 1/5 1〜3時間 初心者へのやさしさ 70/100
DataDog/dd-trace-java#10245 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 62/100
DataDog/dd-trace-java#12608 ·
-
type: bug report
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
DataDog/dd-trace-java#12597 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
DataDog/dd-trace-java#12540 · コメント 4 件 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
DataDog/dd-trace-java#12480 ·
DataDog/dd-trace-java の issue をすべて見る
似ている issue
-
area/plugin
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
kestra-io/plugin-kestra#190 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apache/rocketmq-dashboard#5064 ·