Class InstrumentationAnnotationsAutoConfiguration

java.lang.Object
io.opentelemetry.instrumentation.spring.autoconfigure.instrumentation.annotations.InstrumentationAnnotationsAutoConfiguration

@ConditionalOnBean(io.opentelemetry.api.OpenTelemetry.class) @ConditionalOnClass(org.aspectj.lang.annotation.Aspect.class) @ConditionalOnProperty(name="otel.instrumentation.annotations.enabled", matchIfMissing=true) @Configuration public class InstrumentationAnnotationsAutoConfiguration extends Object
Configures WithSpanAspect to trace bean methods annotated with WithSpan.
  • Constructor Details

    • InstrumentationAnnotationsAutoConfiguration

      public InstrumentationAnnotationsAutoConfiguration()