@Target(value={METHOD,CONSTRUCTOR}) @Retention(value=RUNTIME) public @interface WithSpan
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 the OpenTelemetry auto-instrumentation agent, or some other annotation processor.
public abstract String value
If not specified, an appropriate default name should be created by auto-instrumentation.
E.g. "className"."method"