Skip to content

Use ObservationRequestEventListener in order to support traces when using Jersey #39633

Closed
@carlos-silva24

Description

@carlos-silva24

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions