GitHub user rocketraman created a discussion: Add meta-data to DLQ

**Is your feature request related to a problem? Please describe.**
The automatic DLQ is a nice feature, but its lacking any ability to add 
meta-data to the entry in the DLQ. For example, setting a property like 
"causalException" with an exception message and stack trace is very useful when 
looking at the entries in the DLQ and deciding how to handle them.

**Describe the solution you'd like**
One possible solution may be to allow passing additional properties to the 
`negativeAcknowledge` method. When an entry is created in the DLQ, the 
additional props provided would be added to the DLQ message properties.

**Alternatives**
Manual DLQ handling. Use Pulsar's redelivery count to manually produce to a DLQ 
topic, along with the necessary meta-data. ~This implies that the redelivery 
count is populated in the `Message` regardless of the presence of a 
`DeadLetterPolicy`. I haven't checked whether that is the case or not.~

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

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

Reply via email to