[ 
https://issues.apache.org/jira/browse/AMQ-8463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17865671#comment-17865671
 ] 

Grzegorz Kochański commented on AMQ-8463:
-----------------------------------------

about {{{}lastMessageTimestamp{}}}: how naive is the following proposition to 
be added to {{{}StatisticsBroker{}}}? 

 
{code:java}
statsMessage.setLong("lastMessageTimestamp", 
stats.getEnqueues().getLastSampleTime()); {code}
I believe value of {{stats.getEnqueues().getLastSampleTime()}} does not differ 
too much from {{message.getBrokerInTime()}} and it is the single line change :) 

 

 

> Add lastMessageTimestamp and firstMessageTimestamp to destination
> -----------------------------------------------------------------
>
>                 Key: AMQ-8463
>                 URL: https://issues.apache.org/jira/browse/AMQ-8463
>             Project: ActiveMQ Classic
>          Issue Type: Improvement
>          Components: Broker
>            Reporter: Matt Pavlovich
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 6.2.0
>
>
> Observability and tracking metrics on the destination can provide current 
> message age and indication of message flow activity.
> firstMessageTimestamp - the timestamp of the first message to traverse the 
> destination
> lastMessageTimestamp - the timestamp of the most recent message to traverse 
> the destination (aka 'message age' for messages still on the queue)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to