feat(android): [Logs and Metrics Enable Flags 4] Add Timber Logs opt-in - #5943
Draft
adinauer wants to merge 2 commits into
Draft
feat(android): [Logs and Metrics Enable Flags 4] Add Timber Logs opt-in#5943adinauer wants to merge 2 commits into
adinauer wants to merge 2 commits into
Conversation
Require an explicit Timber-local opt-in before forwarding Timber messages as Sentry Logs. Add Android options and manifest configuration for auto-installed integrations while preserving event and breadcrumb capture. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
|
This was referenced Aug 12, 2026
📲 Install BuildsAndroid
|
This was referenced Aug 12, 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 (Logs and Metrics Enable Flags)
📜 Description
Adds an
enableLogsoption toSentryTimberIntegrationandSentryTimberTree, defaulting tofalsewhile preserving their existing JVM constructor signatures.Adds
SentryAndroidOptions.enableTimberLogsand theio.sentry.timber.logs.enabledmanifest key for auto-installed Timber integrations. Manually installed integrations and trees can opt in through their new constructor arguments.Timber forwarding requires both this local opt-in and the existing aggregate core Logs flag until that flag is removed later in the stack. Event and breadcrumb capture remain unchanged.
💡 Motivation and Context
Logging integrations need explicit local opt-ins before the aggregate core Logs flag can be removed. This keeps automatic Timber log forwarding disabled by default while allowing applications to opt in through Java, Kotlin, or Android manifest configuration.
💚 How did you test it?
./gradlew spotlessApply apiDump./gradlew :sentry-android-timber:testReleaseUnitTest :sentry-android-core:testReleaseUnitTest📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Add the Logcat Logs opt-in before removing the aggregate core Logs flag.