diff --git a/docs/src/main/asciidoc/opentracing.adoc b/docs/src/main/asciidoc/opentracing.adoc index d5cef43340f14..5770019b6be50 100644 --- a/docs/src/main/asciidoc/opentracing.adoc +++ b/docs/src/main/asciidoc/opentracing.adoc @@ -170,7 +170,7 @@ Hit `CTRL+C` to stop the application. == Tracing additional methods REST endpoints are automatically traced. -If you need to trace additional methods, you can use the `org.eclipse.microprofile.opentracing.Traced` annotation at class or method level. +If you need to trace additional methods, you can add the `org.eclipse.microprofile.opentracing.Traced` annotation to CDI bean classes or their non-private methods. This can be useful to trace incoming requests from non-REST calls (like request coming from a message) or to create spans inside a trace. @@ -192,7 +192,7 @@ public class FrancophoneService { } ---- -NOTE: the best way to add OpenTracing capability to reactive messaging based applications is by adding the `Traced` annotation to all incoming methods. +NOTE: The best way to add OpenTracing capability to reactive messaging based applications is by adding the `Traced` annotation to all incoming methods. == Additional instrumentation