This module records timestamps for when Symfony Messenger messages are received and processed, allowing for analysis of processing wait times and execution durations. It provides a user interface to view these statistics and stores them in the database for persistence.
Records metrics about processing for consumption by others, including:
- Pre-handle time: the time spent between a message dispatch and when processing begins. Most of the time will be attributed to time spent waiting for a worker to pick up the task.
- Hand time: time spent by the message handle to execute a message.
Notes: stats are always complete, stats will not appear until processing for each message is complete. Metrics use database persistence, so catastrophic connection failures will still cause metrics not be logged, at least until the message is processed.
A UI is also included to display summaries of statistics per transport and message combination. (See screenshots)
The module is ready as soon as its installed, other configuration options are documented in the README.
The Symfony Messenger Monitoring project makes use of SM Metrics to record statistics.