GitHub user adparts edited a discussion: How to enable server publish time on 
messages?

Hi all,

The Message class, has the following method:

`Optional<Long> getBrokerPublishTime()`
Get broker publish time from broker entry metadata. 
**Note that only if the feature is enabled in the broker then the value is 
available.**

Does anyone know how to enable this functionality in the broker? we are not 
able to find it.

getPublishTime() returns the client timestamp and is not suitable to analyze 
timings between messages. 

Thank you!

GitHub link: https://github.com/apache/pulsar/discussions/23073

----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscr...@pulsar.apache.org

Reply via email to