Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Springboot metrics are "duplicated"

Open
#9,212 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, spring-boot
Domain
observability

Research direction

Reproduce the behavior with the DataDog apm-tutorial-java-host Jersey example and the spring-guides gs-spring-boot complete example using dd-java-agent 1.51.1, then compare their service catalog operations after sending requests. The issue is done when the Spring Boot example no longer presents spring.handler as a duplicate of servlet.request, or the service view behavior is otherwise aligned with the stated expectation.

Written by the indexing model from the issue text.

Description

type: bug report
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:
Image

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:
Image
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
Dominant language
Java
Stars
737
Forks
361
Avg merge
3d 20h
Merged PRs (30d)
173

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DataDog/dd-trace-java

All issues in DataDog/dd-trace-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.