You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Grzegorz Kochański (Jira)" <ji...@apache.org> on 2024/07/13 11:20:00 UTC

[jira] [Commented] (AMQ-8463) Add lastMessageTimestamp and firstMessageTimestamp to destination

    [ 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: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact