feat(apollo): [Data Collection 8] Apply outgoing request body policy#5804
Draft
adinauer wants to merge 2 commits into
Draft
Conversation
Use the Data Collection outgoing request body decision when attaching failed GraphQL request content in Apollo 3 and 4. Retain request body size metadata and continue applying GraphQL document and variable controls when body collection is enabled. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
|
This was referenced Jul 21, 2026
📲 Install BuildsAndroid
|
Bring the queue option removal and preceding stack updates into this layer.
Contributor
Performance metrics 🚀
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR Stack (Data Collection)
📜 Description
Apply the outgoing request body policy to Apollo 3 and Apollo 4 failed GraphQL events.
When body collection is enabled, GraphQL document and variable policies continue to filter their respective fields. Disabling body content retains request body size and other technical metadata. Existing always-collect behavior remains unchanged when Data Collection is absent.
💡 Motivation and Context
Apollo’s serialized GraphQL request is outgoing HTTP body content and must honor both its directional body policy and its structured GraphQL controls.
Refs #5666
💚 How did you test it?
./gradlew spotlessApply apiDump📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Apply the outgoing server response body policy and HTTP header policies.
#skip-changelog