feat(processor): warn when TodoProcessor item does not implement ItemWithMetadata #181
Labels
No labels
bug
documentation
enhancement
investigation
nice-to-have
performance
production-ready
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ash/eskit#181
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.