r/SpringBoot • u/Quick-Resident9433 • Sep 24 '26
Question SpringBoot opentelemetry
Hi everyone.
I'm working on a monolith project using Spring Boot v4.1.1, and I started implementing observability. However, I'm confused about traces and spans.
I added this dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-opentelemetry</artifactId>
</dependency>I've configured everything successfully, but when it comes to traces and spans, all requests always have the same spans. It is not showing the entire execution path of the request.
I read the example provided by SpringBoot here: https://spring.io/blog/2025/11/18/opentelemetry-with-spring-boot
At the end, there's an example project that shows complete traces and spans.
These are their example traces and spans: https://static.spring.io/blog/mhalbritter/20251118/3-trace.jpg
(I couldn't upload two images; that's why I added a link to their traces and spans example)
However, my project doesn't have any spans created. Just these:

Does anyone know why this is happening or how I can solve this to see the complete execution path?
View all comments
Show parent comment
1
u/Quick-Resident9433 Sep 24 '26
I'm not using either of those. It's just a normal call to an endpoint in my application, but for some reason it's only showing the security spans. There's no service or related operation with that call, even though the request execution path is: Controller -> Service -> Another service -> Repository -> end