Class TracingInterceptor

java.lang.Object
com.aembot.lib.tracing.TracingInterceptor

public class TracingInterceptor extends Object
ByteBuddy interceptor that wraps @Traced methods with timing code. This interceptor is bound to methods at class load time and automatically records span timing.
  • Constructor Details

    • TracingInterceptor

      public TracingInterceptor()
  • Method Details

    • intercept

      @RuntimeType public static Object intercept(@Origin Method method, @SuperCall Callable<?> callable, @This(optional=true) Object self) throws Exception
      Intercepts a @Traced method call, wrapping it with tracing.
      Parameters:
      method - The method being called (injected by ByteBuddy)
      callable - Callable that invokes the original method (injected by ByteBuddy)
      Returns:
      The result of the original method
      Throws:
      Exception - If the original method throws