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

Fix JMS context propagation problems #2702

Merged

Conversation

mateuszrzeszutek
Copy link
Member

Fixes #2420

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

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

is it easy to add a test for this?

@mateuszrzeszutek
Copy link
Member Author

is it easy to add a test for this?

For hornetq and the tracer context leak fix - existing tests sort of cover that.

For the ProducerWithDestinationAdvice fix - that should be possible, I'll do that.

@@ -129,6 +127,7 @@ public static void stopSpan(
}
CallDepthThreadLocalMap.reset(MessageProducer.class);

scope.close();
Copy link
Member Author

Choose a reason for hiding this comment

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

...aaaand one more scope leak detected 😄
It was worth adding that one test case

@trask trask merged commit 5760cd7 into open-telemetry:main Apr 6, 2021
@mateuszrzeszutek mateuszrzeszutek deleted the fix-jmx-context-propagation branch April 6, 2021 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken JMS MessageProducer propagation
4 participants