Springboot metrics are "duplicated"
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java, spring-boot
- Lĩnh vực
- observability
Hướng nghiên cứu
Tái hiện hành vi bằng ví dụ Jersey của DataDog apm-tutorial-java-host và ví dụ hoàn chỉnh của spring-guides gs-spring-boot bằng cách sử dụng dd-java-agent 1.51.1, sau đó so sánh các operation trong service catalog của chúng sau khi gửi các request. Issue được hoàn tất khi ví dụ Spring Boot không còn hiển thị spring.handler là bản sao của servlet.request, hoặc hành vi của service view được căn chỉnh theo cách khác với kỳ vọng đã nêu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Java
- Star
- 737
- Fork
- 361
- Merge trung bình
- 3 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 173
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DataDog/dd-trace-java
-
type: feature request
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 70/100
DataDog/dd-trace-java#10245 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 62/100
DataDog/dd-trace-java#12608 ·
-
type: bug report
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
DataDog/dd-trace-java#12597 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
DataDog/dd-trace-java#12540 · 4 bình luận · 1 người được giao ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
DataDog/dd-trace-java#12480 ·
Tất cả issue của DataDog/dd-trace-java
Issue tương tự
-
certification
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Đang mởbug ecr
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Needs: Triage Type: Feature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
github/copilot-sdk#2760 ·