Class WithSpanAspect
- java.lang.Object
-
- io.opentelemetry.instrumentation.spring.autoconfigure.aspects.WithSpanAspect
-
public class WithSpanAspect extends Object
Uses Spring-AOP to wrap methods marked byWithSpanin aSpan.Ensure methods annotated with
WithSpanare implemented on beans managed by the Spring container.Note: This Aspect uses spring-aop to proxy beans. Therefore the
WithSpanannotation can not be applied to constructors.
-
-
Constructor Summary
Constructors Constructor Description WithSpanAspect(io.opentelemetry.api.trace.Tracer tracer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjecttraceMethod(org.aspectj.lang.ProceedingJoinPoint pjp)
-