quarkus icon indicating copy to clipboard operation
quarkus copied to clipboard

Exclude uri from otel tracing

Open mcruzdev opened this issue 4 months ago • 3 comments

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

mcruzdev avatar Oct 15 '24 17:10 mcruzdev