vert.x icon indicating copy to clipboard operation
vert.x copied to clipboard

Add ability to wiretap messages on the event bus

Open pledbrook opened this issue 14 years ago • 3 comments

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.

pledbrook avatar Jun 19 '12 11:06 pledbrook

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.

pidster avatar Jan 19 '13 10:01 pidster

Will providing hooks on the event bus work?, Implement the hooks yourself and you will be notified when things happen at the Event Bus

winash avatar Apr 23 '13 07:04 winash

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).

j2ro avatar Jul 03 '13 09:07 j2ro