Annotation Type WithSpan
This annotation marks that an execution of this method or constructor should result in a new
Span
.
Application developers can use this annotation to signal OpenTelemetry auto-instrumentation that a new span should be created whenever marked method is executed.
If you are a library developer, then probably you should NOT use this annotation, because it is non-functional without some form of auto-instrumentation.
-
Optional Element Summary
-
Element Details
-
value
String valueOptional name of the created span.If not specified, an appropriate default name should be created by auto-instrumentation. E.g.
"className"."method"
- Default:
- ""
-
kind
io.opentelemetry.api.trace.SpanKind kindSpecify theSpanKind
of span to be created. Defaults toSpanKind.INTERNAL
.- Default:
- INTERNAL
-