Whenever there is an error while processing incoming messages the failed messages are moved to the Dead letter queue. However, the exception that caused the message is not logged.
spring cloud stream : 4.0.1
Binder : Kafka
spring:
cloud:
function:
definition: preProcessingMessageAudit|abcProcessing|postProcessingMessageAudit
stream:
function:
bindings:
preProcessingMessageAudit|abcProcessing|postProcessingMessageAudit-in-0: input
preProcessingMessageAudit|abcProcessing|postProcessingMessageAudit-out-0: output
bindings:
input:
destination: ABCIncomingChannel
consumer:
concurrency: 4
group: mpa
output:
destination: ABCOutgoingChannel
producer:
partitionCount: 4
kafka:
binder:
kafka-properties:
bootstrap-servers: localhost:9092
replicationFactor : 1
autoAddPartitions : true
bindings:
input:
consumer:
enableDlq: true
dlqName: abc-dead-letter