- Enclosing class:
Tracing
Marks all service methods on this type as traced, or marks a method as traced (i.e. a new span is created for each
invocation of the method).
A service method is a non-private method on a ServiceRegistry service.
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueName of the span, inferred from method name by default. The value can use a template%1$sfor the class name, and%2$sfor the method name.- Returns:
- span name
- Default:
"%1$s.%2$s"
-
kind
Span.Kind kindSpan kind. Defaults toSpan.Kind.INTERNAL. Note that if kind is set on a type to anything else than internal, it cannot be changed to internal on method level (i.e. internal is default, so we use the value from parent).If a method needs to use internal span kind, there must not be a type
Tracing.Tracedannotation.- Returns:
- kind of the span(s) to create
- Default:
INTERNAL
-
tags
Tracing.Tag[] tagsTags with fixed values that will be added to this span.- Returns:
- tags
- Default:
{}
-