Package com.aembot.lib.tracing
Class CommandTracingInterceptor
java.lang.Object
com.aembot.lib.tracing.CommandTracingInterceptor
ByteBuddy interceptor that wraps WPILib Command lifecycle methods with tracing.
Automatically traces initialize(), execute(), isFinished(), and end() methods.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
COMMAND_CATEGORY
Category used for all Command traces- See Also:
-
-
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
-