Skip to content

Conversation

@laurit
Copy link
Contributor

@laurit laurit commented Nov 17, 2025

I believe that this not a regression, but rather caused by using exchangeToMono instead of the exchange that was removed in webflux 7.

@laurit laurit requested a review from a team as a code owner November 17, 2025 15:54
@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label Nov 17, 2025
Copy link
Member

@zeitlinger zeitlinger left a comment

Choose a reason for hiding this comment

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

Were those tests failing before or how did you test this?

}

private static void registerReactorHook() {
ContextPropagationOperator.builder().build().registerOnEachOperator();
Copy link
Member

Choose a reason for hiding this comment

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

is there any issue with calling this twice?

is the instrumentation broken in 7.0 if you don't call this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is there any issue with calling this twice?

There shouldn't be an issue, webflux server instrumentation is doing it exactly the same way. ContextPropagationOperator has a boolean that avoids doing anything after it has already been registered once.

is the instrumentation broken in 7.0 if you don't call this?

This is only needed for the library instrumentation. Instrumentation is mostly functional just that context isn't propagated into reactive callbacks. I believe that this is not a regression and the same issue was already present for older webflux versions, our tests just didn't catch it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test native This label can be applied to PRs to trigger them to run native tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants