Class CommandTracingInterceptor

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

public class CommandTracingInterceptor extends Object
ByteBuddy interceptor that wraps WPILib Command lifecycle methods with tracing. Automatically traces initialize(), execute(), isFinished(), and end() methods.
  • Field Details

  • Constructor Details

    • CommandTracingInterceptor

      public CommandTracingInterceptor()
  • Method Details

    • intercept

      @RuntimeType public static Object intercept(@Origin Method method, @SuperCall Callable<?> callable, @This Object self) throws Exception
      Intercepts Command lifecycle method calls, wrapping them with tracing.
      Parameters:
      method - The method being called (injected by ByteBuddy)
      callable - Callable that invokes the original method (injected by ByteBuddy)
      self - The Command instance (injected by ByteBuddy)
      Returns:
      The result of the original method
      Throws:
      Exception - If the original method throws