automatically collect metrics about dispatched events