Skip to content

Commit

Permalink
Merge pull request #15992 from Ladicek/traced-annotation-docs
Browse files Browse the repository at this point in the history
Clarify where can the @Traced annotation be used
  • Loading branch information
gsmet authored Mar 24, 2021
2 parents 0344d52 + e777f99 commit f744fd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/opentracing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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

Expand Down

0 comments on commit f744fd7

Please sign in to comment.