Repository navigation
ref(core)!: [Remove sendDefaultPii 1] Remove sendDefaultPii - #6793
Merged
Merged
Conversation
Contributor
PR risk: highFor commit Main concerns: public contract, reach, data sent to Sentry. Rules that block low also fired:
This label is a hint for reviewers, not an approval. |
📲 Install BuildsAndroid
|
1 of 6 tasks
adinauer
marked this pull request as ready for review
November 27, 2026 03:56
adinauer
requested review from
0xadam-brown and
romtsn
and removed request for
a team
November 27, 2026 03:56
Remove the deprecated option and use Data Collection defaults across SDK integrations. Document how to configure restrictive collection behavior when migrating to version 9. Fixes GH-6160
New JDK trust stores reject the compromised eMudhra certificate during the TLS handshake before the SDK-specific check runs. Assert the shared IOException contract so the transport test remains valid across JDK trust store versions.
adinauer
force-pushed
the
ref/remove-send-default-pii-v9
branch
from
November 27, 2026 10:24
b6c577c to
c642802
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c642802. Configure here.
3 of 9 tasks
romtsn
reviewed
Nov 27, 2026
romtsn
reviewed
Nov 27, 2026
romtsn
requested changes
Nov 27, 2026
romtsn
left a comment
Contributor
There was a problem hiding this comment.
I'd check the bugbot finding and also the couple of comments I've left, let me know when it needs another look!
5 of 9 tasks
Keep completed OpenTelemetry HTTP header attributes outside Data Collection because the SDK cannot distinguish manual attributes from automatic instrumentation. Continue filtering known security cookies and document the v9 behavior. Refs GH-6160 Co-Authored-By: Claude <[email protected]>
romtsn
approved these changes
Nov 30, 2026
Keep the remove-sendDefaultPii stack focused on the SDK and changelog. Version migration guidance is maintained in the platform documentation instead of the obsolete root migration file. Co-Authored-By: Claude <[email protected]>
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 (Remove sendDefaultPii)
📜 Description
Remove the deprecated
sendDefaultPiioption from the Java, Android, Spring, external configuration, and generated API surfaces. Data Collection is now the only SDK-level control for automatically collected data.When Data Collection is not explicitly configured, the documented defaults now apply directly: user information, database query data, file paths, GraphQL content, and HTTP bodies are enabled, while cookies, URL query parameters, and HTTP headers use their default deny lists. Explicit Data Collection settings continue to take precedence.
This also removes the compatibility-only
DataCollection.forceDataCollection()API, makes Logback rely only onincludeUnencodedMessage, and applies the request-header Data Collection policy to OpenTelemetry-derived headers.💡 Motivation and Context
sendDefaultPiiwas deprecated in 8.x after Data Collection shipped. Version 9 removes the legacy configuration surfaces and fallback behavior so integrations use one consistent policy model.Migration guidance documents the new defaults and how to configure restrictive collection behavior explicitly.
sendDefaultPiiin v9 #6160💚 How did you test it?
make format api.📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
sentry-docs.sendDefaultPii.