Closed
Description
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
- On my demo project it fails for tracing but works fine for prometheus metrics.
- On a discussion related to this (DefaultJerseyTagsProvider clashes with WebMvcObservationAutoConfiguration #39294 (comment)) it was found that the Spring Boot auto configuration should use the new org.glassfish.jersey.micrometer.server.ObservationRequestEventListener instead of the current instrumentation which only supports metrics