As an engineer, we need to be able to track when the event entered our system and when it was produced in the topic where it is located right now.
Refer to the article.event schema.
event.date_created is the timestamp when the message entered our system (i.e, processed by event-bridge).
event.date_published is the timestamp when the message was produced in its current topic
- Set event.identifier, event.date_created, event.date_published and type in event-bridge handlers
- As messages travel to other topics , make sure event.identifier and event.date_created stays intact. In structured-data handlers, only update, event.date_published and other fields such as fail_count, fail_reason, etc.
Acceptance criteria:
- For a message in event-bridge topic, date_created and date_published is the same.
- For the same message in structured-data topic, date_published > date_created. identifier is the same as it was in the event-bridge.