-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feat(node): Add ignoreIncomingRequestBody
callback to httpIntegration
#15959
Conversation
99aa097
to
b10a5e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Lms24 the main reason I still have it as draft is to be able to check the build/lint/tests on a linux VM as windows isn't supported. I was able to build/run just the specific parts I changed whilst on windows but that was with heavy modification and hence wanting to double check in an environment with just the feature change and not the workarounds. There isn't an issue associated with this (as far as I know) but I can create one to link to if you want? |
…t bodies This allows ignoring the request body for certain requests, which is very useful in situations of long-running requests with large/streaming request bodies which can result in a lot of memory usage
b10a5e8
to
46f6503
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, thanks for getting back to me!
Usually it'd be best to start off with an issue (after which we'd still gladly accept a PR of course 😅). Since the PR is already here, no need for it now.
This change looks good to me so I'll approve it. Still waiting on comments from other team members before merging it.
I just made one more change to also add the new option to the Talked to the team and everyone is fine with the change. So I'm gonna merge it. Thanks for contributing! |
ignoreIncomingRequestBody
to avoid capturing request bodiesignoreIncomingRequestBody
callback to httpIntegration
Awesome, thanks for the quick response @Lms24. And I agree on the issue, it was just a case that by the time I tracked down the memory usage I was already in the place to fix it :) |
This PR adds the external contributor to the CHANGELOG.md file, so that they are credited for their contribution. See #15959 Co-authored-by: Lms24 <[email protected]>
This allows ignoring the request body for certain requests, which is very useful in situations of long-running requests with large/streaming request bodies which can result in a lot of memory usage
Before submitting a pull request, please take a look at our
Contributing guidelines and verify:
yarn lint
) & (yarn test
).