-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get message publish timestamp #912
Comments
It's not possible right now. As you can see it's not in the |
Triaged on 13/6/2024: it makes sense to have this implemented to reflect what users already have when using the Kafka consumer/producer API. |
@ppatierno I will be working on this. |
Cool, thanks @antonio-pedro99 |
Should we care about the ProducerRecord's timestamp too? I think it makes sense to include the timestamp in the ConsumerRecord, to see when the message was created or appended to the log. Which is the case of @hsiaand. For my initial work, messages are being retrieved just like below: [
{
"topic": "bridge-quickstart-topic",
"key": "my-key",
"value": "sales-lead-0001",
"partition": 0,
"offset": 0,
"timestamp": 1719663008510
},
{
"topic": "bridge-quickstart-topic",
"key": "my-key",
"value": "sales-lead-0001",
"partition": 0,
"offset": 1,
"timestamp": 1719663054984
}
] Whether the message timestamp value is when it was created or appended to the log, it depends on the |
Yes. We should provide the same UX we have with the Kafka Producer API which, as you can see here https://javadoc.io/doc/org.apache.kafka/kafka-clients/latest/org/apache/kafka/clients/producer/ProducerRecord.html, allows to specify the timestamp on the produced record. |
I got it. My question is, should the users mention the timestamp while producing messages? This is something the bridge can handle it internally. |
As I said, we should provide same UX experience as a Kafka Producer API, where the user provides the timestamp. |
Hi
I am looking to get message publish timestamp on the returned json payload from consumer subscription.
Any option or ways to get this info?
The text was updated successfully, but these errors were encountered: