feat(processor): warn when TodoProcessor item does not implement ItemWithMetadata #181

Open
opened 2026-03-03 20:05:39 +00:00 by ash · 0 comments
Owner

If a TodoProcessor item does not implement ItemWithMetadata, the processor silently starts a new chain — losing the original correlation. This is correct behavior but easy to miss.

Add a one-time log.Warn on first claim if the item type does not implement ItemWithMetadata, so developers know they are losing correlation chains.

Alternatively: add a TodoConfig.RequireMetadata bool that panics at startup if V does not implement ItemWithMetadata.

If a TodoProcessor item does not implement ItemWithMetadata, the processor silently starts a new chain — losing the original correlation. This is correct behavior but easy to miss. Add a one-time log.Warn on first claim if the item type does not implement ItemWithMetadata, so developers know they are losing correlation chains. Alternatively: add a TodoConfig.RequireMetadata bool that panics at startup if V does not implement ItemWithMetadata.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ash/eskit#181
No description provided.