Quarkus opentracing Traced annotation

101 Views Asked by At

Quick question. Does the @Traced annotation still work? This was part of Quarkus's opentracing which is now replaced with the opentelemetry implementation. I am wondering if the @Traced is supposed to work as i tried it on a call but it doesn't generate any traces. I just wanted to confirm it's because of the migration to opentelemetry and not due to something missing..

Thank you in advance!

SG

1

There are 1 best solutions below

1
Bruno Baptista On

As mentioned in the comments by Ladicek, the old quarkus-smallrye-opentracing annotation @Traced, was replaced by @WithSpan in methods when using the newer quarkus-opentelemetry extension.

It can be used together with @SpanAttribute to store method arguments as span attributes.

Please see: https://quarkus.io/guides/opentelemetry#cdi