Skip to content

Request body blocking for netty #377

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

Merged
merged 6 commits into from
Feb 24, 2023
Merged

Request body blocking for netty #377

merged 6 commits into from
Feb 24, 2023

Conversation

shashank11p
Copy link
Contributor

Adds request body blocking capability on netty

@@ -55,6 +57,14 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) {
return;
}
}
if (msg instanceof HttpContent) {
if (FilterRegistry.getFilter().evaluateRequestBody(span, null, null)) {

Choose a reason for hiding this comment

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

What does this mean? It's passing null for request body?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We do not have the request body at this point, but we have the request body in span attributes. And the filter impl will use request body from span attributes

@shashank11p shashank11p merged commit dd21236 into main Feb 24, 2023
@shashank11p shashank11p deleted the reqBodyBlockVertx2 branch February 24, 2023 22:54
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.

2 participants