feat(http): [Data Collection 13] Apply cookie collection policy#5811
Draft
adinauer wants to merge 1 commit into
Draft
feat(http): [Data Collection 13] Apply cookie collection policy#5811adinauer wants to merge 1 commit into
adinauer wants to merge 1 commit into
Conversation
Filter automatically captured request and response cookies according to the Data Collection policy across Spring and HTTP client integrations. Preserve existing sendDefaultPii behavior when Data Collection is absent. Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Jul 22, 2026
Contributor
|
This was referenced Jul 22, 2026
📲 Install BuildsAndroid
|
Contributor
Performance metrics 🚀
|
9 tasks
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 cookie Data Collection policy to automatically captured request and response cookies.
The policy is used by Spring MVC/WebFlux, OkHttp, Ktor, and Apollo 3/4 failed-request events. Explicit Data Collection supports off, deny-list, and allow-list behavior. Built-in sensitive cookie names and Spring integration-provided session cookie names are always filtered, including when allow-listed.
Set-Cookievalues are parsed separately so attributes such asPath,HttpOnly, andSameSiteare preserved.When Data Collection is absent, integrations preserve their existing
sendDefaultPiibehavior, including Spring's legacy security-cookie filtering and raw HTTP-client cookie values.💡 Motivation and Context
Cookie collection previously relied on
sendDefaultPiias an on/off gate, with filtering only in Spring integrations. This wires the existingdataCollection.cookiesoption across cookie capture paths and provides consistent explicit-mode filtering without changing the legacy bridge for applications that have not configured Data Collection.Refs #5666
💚 How did you test it?
./gradlew spotlessApply apiDump./gradlew :sentry:apiCheckgit diff --check📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Complete the remaining Data Collection configuration, documentation, and migration work.
#skip-changelog