@Documented
@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
public @interface Traced
InterceptorBinding
for frameworks to
process all of each application's explicit Traced
annotations.Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
operationName
Default is "".
|
boolean |
value
Defaults to true.
|
public abstract boolean value
@Traced
is specified at the class
level, then @Traced(false)
is used to annotate specific
methods to disable creation of a Span for those methods. By default all
JAX-RS endpoint methods are traced. To disable Span creation of a
specific JAX-RS endpoint, the @Traced(false) annotation can be used.
When the @Traced(false)
annotation is used for a JAX-RS
endpoint method, the upstream SpanContext will not be extracted. Any
Spans created, either automatically for outbound requests, or explicitly
using an injected Tracer, will not have an upstream parent Span in the
Span hierarchy.public abstract java.lang.String operationName
@Traced
annotation finds the
operationName as "", the default operation name is used. For a JAX-RS
endpoint method, it is
${HTTP method}:${package name}.${class name}.${method name}
.
If the annotated method is not a JAX-RS endpoint, the default operation
name of the new Span for the method is:
${package name}.${class name}.${method name}
. If
operationName is specified on a class, that operationName will be used
for all methods of the class unless a method explicitly overrides it with
its own operationName.