| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Stop treating DataCollection construction as an implicit opt-in. Add an explicit forceDataCollection method so callers can select the new defaults without replacing manifest or external configuration. Co-Authored-By: Claude <noreply@anthropic.com>
📲 Install BuildsAndroid
|
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM 👍
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Stack (Data Collection)
📜 Description
Make an empty DataCollection neutral and add forceDataCollection() as the explicit way to opt into the documented Data Collection defaults without configuring an individual option.
Remove the internal boolean constructor and update SDK-owned configuration objects to use the neutral no-argument constructor. Keep SentryOptions.setDataCollection(...), but document that replacing the object discards options already configured on that instance.
💡 Motivation and Context
Constructing and assigning an empty DataCollection previously activated the new defaults while replacing values already loaded from external configuration or Android manifest metadata. Calling options.getDataCollection().forceDataCollection() now activates those defaults on the existing object, preserving configuration from other sources.
Refs #5666
💚 How did you test it?
📝 Checklist
🔮 Next steps
Complete final review of the Data Collection collection PR.
#skip-changelog