monitor: add trace option to debug server-client protocol