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 wrong baggage scope closing order in ObservationAwareBaggageThreadLocalAccessor #635

Merged
merged 3 commits into from
May 7, 2024

Conversation

Antosch
Copy link

@Antosch Antosch commented Mar 17, 2024

This PR is related to #579 . It was kind of hard to reproduce the exact problem using a test but I managed to do so via reflection (I hope that it fine). The test just sets a baggageToPropagate directly using the accessor in the main thread and then immediately closes the scopes. If you do not fix the order of the closing scopes the OTelConfig test will fail and actually will affect trailing tests because the scopes are interfering with each other. Feel free to give suggestions on how to better test this :)

@marcingrzejszczak marcingrzejszczak merged commit ad48472 into micrometer-metrics:main May 7, 2024
4 checks passed
marcingrzejszczak added a commit that referenced this pull request May 7, 2024
…order

fixed via changing the scope closing order

fixes gh-579, gh-635
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.

None yet

3 participants