spring-cloud-aws icon indicating copy to clipboard operation
spring-cloud-aws copied to clipboard

MessagingTemplates adding channel interceptors to internally resolved MessageChannel instances

Open grigorigoldman opened this issue 9 years ago • 2 comments

It would be great if we could set channel interceptors somehow when destinations are resolved to MessageChannel instances inside the QueueMessagingTemplate and NotificationMessagingTemplate classes. This way we can apply additional processing before/after messages are sent/received (e.g. encryption/decryption, etc.).

grigorigoldman avatar Oct 07 '15 05:10 grigorigoldman

This would also help to integrate aws messaging with spring cloud sleuth. Currently there is no non-invasive way to add tracing to sqs messages.

sbuettner avatar Jun 28 '16 15:06 sbuettner

I'd like to bump this issue. Currently, I'm trying to implement OpenTracing for the SQS listener, but it's iffy to do so via the public APIs.

My current approach is by injecting the SimpleMessageListenerContainer and decorating the existing QueueMessageHandler with my own code. After that, I can set the handler on the container, but it feels dirty, and should be possible with an interceptor.

nielsvn92 avatar Jun 26 '19 12:06 nielsvn92