How can I log each attempt in non-blocking retries? #3008
-
Hi I want to log each attempts, as a warningss in non-blocking retries. I know I can do it by using a producerinterceptor, and then check if the topic contains "retry". Then i can use the headers from the record, to enrich my log line. But is this the correct approach? Is there a way to hook in at exception time? /Casper |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Could you check this answer given by Gary? https://stackoverflow.com/a/76811267/2070861 |
Beta Was this translation helpful? Give feedback.
-
If I understand correctly, rather than logging in the |
Beta Was this translation helpful? Give feedback.
-
If you want to log the sending to the retry topic, as Artem mentioned above, |
Beta Was this translation helpful? Give feedback.
-
I will go for the solution, with the ProducerInterceptor. |
Beta Was this translation helpful? Give feedback.
I will go for the solution, with the ProducerInterceptor.