Repository navigation
feat(android): [Logs and Metrics Enable Flags 4] Add Timber Logs opt-in - #5943
Merged
Merged
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
Merged
adinauer
marked this pull request as ready for review
August 13, 2026 13:40
adinauer
requested review from
0xadam-brown,
markushi,
romtsn and
runningcode
as code owners
August 13, 2026 13:40
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4f677fb. Configure here.
runningcode
reviewed
Aug 14, 2026
This was referenced Aug 14, 2026
lbloder
reviewed
Aug 23, 2026
Closed
8 tasks
# Conflicts: # sentry-android-core/api/sentry-android-core.api
Base automatically changed from
feat/logs-opt-in-jul
to
feat/logs-metrics-enable-flags
October 9, 2026 09:13
adinauer
merged commit Oct 9, 2026
1c7e8e6
into
feat/logs-metrics-enable-flags
59 of 66 checks passed
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 a
logsEnabledoption toSentryTimberIntegrationandSentryTimberTree, defaulting tofalsewhile preserving their existing JVM constructor signatures.Adds
SentryAndroidOptions.timberLogsEnabledand 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.