Class WithSpanMethodInterceptor


  • public class WithSpanMethodInterceptor
    extends Object
    Interceptor for CDI beans that adds tracing spans using OpenTelemetry.
    • Constructor Detail

      • WithSpanMethodInterceptor

        public WithSpanMethodInterceptor​(jakarta.enterprise.inject.spi.BeanManager bm)
    • Method Detail

      • getAnnotation

        public static <A extends Annotation> A getAnnotation​(jakarta.enterprise.inject.spi.BeanManager beanManager,
                                                             Class<A> annotationClass,
                                                             Class<?> annotatedClass,
                                                             Method method)
      • withSpanCdiCall

        public Object withSpanCdiCall​(jakarta.interceptor.InvocationContext invocationContext)
                               throws Exception
        Throws:
        Exception