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

Remove context propagation filter #11294

Merged
merged 7 commits into from
Nov 7, 2024
Merged

Remove context propagation filter #11294

merged 7 commits into from
Nov 7, 2024

Conversation

yawkat
Copy link
Member

@yawkat yawkat commented Oct 31, 2024

Implement "proper" context propagation in the client to get rid of the old ClientServerContextFilter.

Because context propagation uses its own key for the reactor context instead of ServerRequestContext.KEY, I've deprecated ServerRequestContext.KEY and added a more general API that can use the propagated context from the ContextView.

Also adds cancellation support to ExecutionFlow.
Implement "proper" context propagation in the client to get rid of the old ClientServerContextFilter.

Because context propagation uses its own key for the reactor context instead of ServerRequestContext.KEY, I've deprecated ServerRequestContext.KEY and added a more general API that can use the propagated context from the ContextView.
@yawkat yawkat added the type: improvement A minor improvement to an existing feature label Oct 31, 2024
@yawkat yawkat added this to the 4.8.0 milestone Oct 31, 2024
* @return The request context if it is present
*/
@SuppressWarnings("unchecked")
public static <T> Optional<HttpRequest<T>> currentRequest(ContextView context) {
Copy link
Contributor

Choose a reason for hiding this comment

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

add @since and nullability annotation to the parameter

Base automatically changed from client-flow to 4.7.x November 6, 2024 10:33
@yawkat yawkat changed the base branch from 4.7.x to 4.8.x November 6, 2024 10:39
# Conflicts:
#	http-client/src/main/java/io/micronaut/http/client/netty/DefaultHttpClient.java
Copy link

sonarqubecloud bot commented Nov 6, 2024

@graemerocher graemerocher merged commit 8af13bb into 4.8.x Nov 7, 2024
21 checks passed
@graemerocher graemerocher deleted the client-flow-propagate branch November 7, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement A minor improvement to an existing feature
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants