Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make @RabbitListener propagate context properly #3339

Merged

Conversation

mateuszrzeszutek
Copy link
Member

Fixes #2822
Fixes #2436

It turns out that the BlockingQueueConsumer class that I've discovered while working on the spring-integration instrumentation was the cause behind this. Similar to spring-integration, I've added another CONSUMER span that will now propagate its context forward to the actual user listener code.

extends MessagingAttributesExtractor<Message, Void> {
@Override
protected String system(Message message) {
return "rabbitmq";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should rename this module to spring-amqp-rabbitmq?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I'll rename it to spring-rabbit - this is the name of the library that actually contains AbstractMessageListenerContainer

@trask trask merged commit 108b129 into open-telemetry:main Jun 17, 2021
@mateuszrzeszutek mateuszrzeszutek deleted the spring-amqp-propagation-fix branch June 18, 2021 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants