You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my springboot 3.2.2 version using micrometer tracing and jersey I'm not able to report traces to my open telemetry collector.
In order to be able to report traces I need to also add the spring-boot-starter-web dependency, which leads to the traces being reported with URI as unknown.
I shouldn't need the spring-boot-starter-web to report traces in the first place I would guess.
mhalbritter
changed the title
Spring-boot Autoconfiguration should use the new org.glassfish.jersey.micrometer.server.ObservationRequestEventListener in order to support traces instead of only metrics
Use ObservationRequestEventListener in order to support traces when using Jersey
Feb 20, 2024
Hey @mhalbritter I was doing some tests on the version 3.3.0-M2 and on the DEMO repo (https://github.com/carlos-silva24/springboot-observability) if I upgrade the springboot version to 3.3.0-M2 and remove the implementation 'org.springframework.boot:spring-boot-starter-web' dependency I don't even get the prometheus metrics right.
Before, on the 3.2.1 without that dependency prometheus metrics were fine, I just had no traces at all.
@carlos-silva24 yes, that was the purpose of this issue: switching to the new and official observation support in jersey itself. So you will need this dependency for this support to be activated.
The problem
On my springboot 3.2.2 version using micrometer tracing and jersey I'm not able to report traces to my open telemetry collector.
In order to be able to report traces I need to also add the spring-boot-starter-web dependency, which leads to the traces being reported with URI as unknown.
I shouldn't need the spring-boot-starter-web to report traces in the first place I would guess.
To Reproduce
I've created a demo repo here and steps on how to reproduce it: https://github.com/carlos-silva24/springboot-observability
Expected behavior
I was expecting the URI to be defined correctly like it does if I switch to spring-boot-starter-web for my REST API instead of Jersey.
Additional context
The text was updated successfully, but these errors were encountered: