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

context-propagation: use ContextSnapshotFactory #3489

Merged
merged 7 commits into from Jun 7, 2023

Conversation

chemicL
Copy link
Member

@chemicL chemicL commented Jun 5, 2023

This change removes the custom logic for setting ThreadLocal values. context-propagation library did not allow removing values missing in the Reactor Context - a feature necessary in order to avoid leaking ThreadLocals.

micrometer-metrics/context-propagation#105 introduced this feature into the public API and now reactor-core is able to use it.

@chemicL chemicL added area/context This issue is related to the Context area/observability labels Jun 5, 2023
@chemicL chemicL added this to the 3.5.7 milestone Jun 5, 2023
@chemicL chemicL self-assigned this Jun 5, 2023
@chemicL chemicL requested a review from a team as a code owner June 5, 2023 11:59
@chemicL chemicL mentioned this pull request Jun 5, 2023
9 tasks

}

static final class ContextCaptureNoPredicate implements Function<Context, Context> {
Copy link
Member Author

Choose a reason for hiding this comment

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

As part of this change I moved this class above the Queue wrappers and closer to the context capture operator logic.

@chemicL chemicL merged commit ab255c5 into main Jun 7, 2023
7 checks passed
@chemicL chemicL deleted the use-context-snapshot-factory branch June 7, 2023 09:46
@chemicL chemicL added the type/enhancement A general enhancement label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/context This issue is related to the Context area/observability type/enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants