lizhimins opened a new issue, #5250:
URL: https://github.com/apache/rocketmq/issues/5250
We can use this hook to statistics rpc failure rate
```Java
public interface RPCHook {
void doBeforeRequest(final String remoteAddr, final RemotingCommand
request);
void doAfterResponse(final String remoteAddr, final RemotingCommand
request,
final RemotingCommand response);
default void doAfterFailure(final String remoteAddr, RemotingCommand
request, Boolean remoteTimeout) {
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]