You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Align WebFlux and Ratpack client telemetry APIs for 3.0 - #20903
Replace WebFlux client list-mutating helpers with filter factories and rename Ratpack's client instrumentation method to wrap(...), matching other library APIs. These are breaking API replacements for 3.0, without deprecated aliases.
For Reactor context propagation, replace builder.filters(telemetry::addFilterAndRegisterReactorHook) with builder.filter(telemetry.createFilterAndRegisterReactorHook()).
Spring Boot customizers add the filter directly; the bean postprocessor still skips clients that already have one. Server filter APIs are unchanged.
… API
Co-authored-by: trask <218610+trask@users.noreply.github.com>
CopilotAI
changed the title
[WIP] Update WebFlux client and server API for consistency
Align WebFlux and Ratpack client telemetry APIs for 3.0
Oct 23, 2026
Aligns WebFlux and Ratpack client instrumentation APIs for 3.0, replacing existing methods without deprecated aliases while leaving server APIs unchanged.
Changes:
Replaces WebFlux list-mutating helpers with filter factories and renames Ratpack’s client method to wrap(...).
Migrates starter integration, examples, and tests to the replacement APIs.
Adds filter-factory and post-processor coverage and documents the breaking changes.
The reason will be displayed to describe this comment to others. Learn more.
🟢 Approval recommended
The API replacements, callers, documentation, and coverage are consistent, and the earlier duplicate-filter issue is confirmed resolved by the developer.
[Testing] The registerHook=true case leaves its async-operation strategy in the global registry after teardown. createFilterAndRegisterReactorHook() creates an operator internally, but this reset creates a different operator with a different ReactorAsyncOperationEndStrategy. resetOnEachOperator() removes the global hooks but unregisters only its own strategy instance, so the registered strategy remains available to later tests through resolveStrategy(Mono.class) even with the hook disabled. Ensure cleanup unregisters the strategy installed by this test, without removing any pre-existing registration; alternatively, make the operator's reset unregister the actual hook owner’s strategy.
The reason will be displayed to describe this comment to others. Learn more.
🟢 Approval recommended
The API migration is consistent across callers and documentation, and the developer-confirmed follow-up resolves the previously reported duplicate-filter regression.
The reason will be displayed to describe this comment to others. Learn more.
🟢 Approval recommended
The API replacements are consistent across consumers and documentation, and the prior duplicate-filter concern is confirmed fixed with regression coverage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace WebFlux client list-mutating helpers with filter factories and rename Ratpack's client instrumentation method to
wrap(...), matching other library APIs. These are breaking API replacements for 3.0, without deprecated aliases.For Reactor context propagation, replace
builder.filters(telemetry::addFilterAndRegisterReactorHook)withbuilder.filter(telemetry.createFilterAndRegisterReactorHook()).Spring Boot customizers add the filter directly; the bean postprocessor still skips clients that already have one. Server filter APIs are unchanged.