Class 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 Detail

      • WithSpanAspect

        public WithSpanAspect​(io.opentelemetry.api.trace.Tracer tracer)
    • Method Detail

      • traceMethod

        public Object traceMethod​(org.aspectj.lang.ProceedingJoinPoint pjp)
                           throws Throwable
        Throws:
        Throwable