feat(http): [Data Collection 12] Apply query parameter policy#5810
Draft
adinauer wants to merge 1 commit into
Draft
feat(http): [Data Collection 12] Apply query parameter policy#5810adinauer wants to merge 1 commit into
adinauer wants to merge 1 commit into
Conversation
Filter automatically collected URL query parameters according to Data Collection settings across server, client, tracing, breadcrumb, and failed-request integrations. Preserve raw query values when Data Collection is absent and always filter built-in sensitive parameter names in explicit mode. Refs #5666 Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
|
This was referenced Jul 22, 2026
📲 Install BuildsAndroid
|
Contributor
Performance metrics 🚀
|
This was referenced Jul 22, 2026
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 query-parameter Data Collection policy to automatic HTTP request data, spans, breadcrumbs, and failed-request events.
The policy is used by Servlet, Spring MVC/WebFlux, OpenTelemetry, OkHttp, Ktor, Apollo 2/3/4, OpenFeign, RestTemplate, and WebClient. Explicit Data Collection supports off, deny-list, and allow-list behavior. Built-in sensitive parameter names are always filtered, including when allow-listed. Encoded parameter names are decoded for matching while the original query encoding is retained.
When Data Collection is absent, integrations continue to attach raw query values as before.
💡 Motivation and Context
Query strings were collected automatically without a dedicated privacy control. This wires the existing
dataCollection.queryParamsoption across Java HTTP integration paths while preserving 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
Migrate cookie collection and complete the remaining Data Collection configuration and integration work.
#skip-changelog