-
Story
-
Resolution: Done
-
Major
-
None
-
- 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](https://stackoverflow.com/questions/78742740/how-to-disable-trace-ids-for-specific-rest-clients-invocations/78748952) discussion.
Fixes #42659
Upstream documentation: https://quarkus.io/guides/opentelemetry-tracing#disabling-traces-for-app-endpoints
Test plan: https://github.com/quarkus-qe/quarkus-test-plans/blob/main/QUARKUS-5668.md
- links to
-
RHEA-2025:4162 Red Hat build of Quarkus 3.20.0 release