Endre-

Thank you for the contribution! I think this is a good metric to track on the 
_destination_ itself.. along w/ the lastMessageTimestamp. Other products have 
it and it provides good observability feedback as to the traffic progressing 
over the destinations.

One side benefit of this approach is that you’d have the timestamp values to 
work with even when the queue is empty.

I’ve created JIRA AMQ-8463 <https://issues.apache.org/jira/browse/AMQ-8463> to 
track this and will target it for 5.17.0 and 5.16.5. If you have other use 
cases or scenarios, please add your notes to the JIRA.

Thanks!
Matt Pavlovich

> On Jan 24, 2022, at 6:13 PM, Endre Stølsvik <en...@stolsvik.com> wrote:
> 
> Hi!
> 
> I have a small contribution I was hoping that you would consider.
> 
> The feature is in the StatisticsBroker(Plugin), where I have added an
> optional request property, which if present will on the reply message
> include the "BrokerInTime" for the first message in the destination, as a
> field "firstMessageTimestamp".
> 
> How do you want me to do such a suggestion? Should I first open an issue /
> feature request, and then do a PR for it, or just submit a PR directly?
> 
> Kind regards,
> Endre Stølsvik

Reply via email to