java.lang.Object
io.opentelemetry.instrumentation.spring.autoconfigure.aspects.WithSpanAspect

public class WithSpanAspect extends Object
Uses Spring-AOP to wrap methods marked by WithSpan in a Span.

Ensure methods annotated with WithSpan are implemented on beans managed by the Spring container.

Note: This Aspect uses spring-aop to proxy beans. Therefore the WithSpan annotation can not be applied to constructors.

  • Constructor Details

    • WithSpanAspect

      public WithSpanAspect(io.opentelemetry.api.OpenTelemetry openTelemetry, org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer)
  • Method Details