Add ability to wiretap messages on the event bus
In asynchronous, event bus based applications, it's often difficult to work out what's going on. Was an event triggered? Did the listener pick it up? What was the content of the event?
We really need a mechanism, such as the wiretap feature of Spring Integration, to inspect what's happening in the event bus. Without it, debugging problems in Vert.x applications will be difficult.
I think that this is a good idea for vert.x 2.0. It would improve the mod-management-xxx capabilities to be able to observe or tag messages (possibly via a sample rate) for monitoring.
Will providing hooks on the event bus work?, Implement the hooks yourself and you will be notified when things happen at the Event Bus
Could this be done by sending all messages posted to the eventbus to a "wiretap" address (e.g. "debug.wiretap"), in addition to its actual destination? This could be configurable, with the default behaviour being that the message only gets sent to the specified address.
A "wiretap" vertical could be run somewhere on the event bus which listens to this wiretap address, and exposes the data it receives, and statistics of this data either in logs, or via JMX (or both).