Skip to content

Propagating ContextLocals when sending Kafka Messages using Emitter #2364

Closed Answered by pk-public
pk-public asked this question in Q&A
Discussion options

You must be logged in to vote

After many hours of debugging quarkus / vertx / smallrye source code, I realized that PublisherDecorator is used on the receiver side, not the sender side.
I should have implemented OutgoingInterceptor instead, which I btw did in the beginning but at some point replaced with PublisherDecorator and forgot about that 🤦
I haven't noticed the issue, cause I had both - producer and consumer configured in the same application so it was executing as it should, but obviously the context was missing.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pk-public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant