quarkus
quarkus copied to clipboard
Exclude uri from otel tracing
What
This pull request creates a new BuildItem
that is used for drop uri from tracing when using quarkus-opentelemetry
extension. The DropApplicationUrisBuildItem
is generated from the scanning of the @Traceless
annotation.
The @Traceless
annotation is used with the jakarta.ws.rs.Path
annotation. If annotated at class level all uri below will be ignored for tracing.
If your @Path
annotation contains expression like @Path("/cars/{carId}")
the extension will ignore all thing after cars
using, e.g. cars*
.
Why
You can see the issue below, or directly this Stackoverflow discussion.
Fixes #42659