FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(core): [Logs and Metrics Enable Flags 20] Make migration warnings visible by adinauer · Pull Request #5966 · getsentry/sentry-java · GitHub

fix(core): [Logs and Metrics Enable Flags 20] Make migration warnings visible - #5966

Open
adinauer wants to merge 1 commit into
fix/timber-lazy-logs-optionfrom
fix/visible-enable-flag-warnings
Open

fix(core): [Logs and Metrics Enable Flags 20] Make migration warnings visible#5966
adinauer wants to merge 1 commit into
fix/timber-lazy-logs-optionfrom
fix/visible-enable-flag-warnings

Conversation

adinauer commented Aug 13, 2026
edited
Loading

Copy link
Copy Markdown
Member

PR Stack (Logs and Metrics Enable Flags)


📜 Description

Routes obsolete Logs and Metrics enable-flag migration warnings through the always-visible fatal logger across core external configuration, Android manifest metadata, and all three Spring Boot variants.

Core now initializes its fatal logger before external configuration is merged. Android continues using AndroidFatalLogger, whose output is emitted at Log.ASSERT. Spring emits its warnings after Sentry.init, when the fatal logger is initialized.

💡 Motivation and Context

The migration warnings previously used the diagnostic logger. During external configuration merge that logger was still a no-op, and in Android or Spring normal startup it remained hidden unless SDK debug logging or a custom diagnostic logger was enabled.

These warnings are the migration path for removed aggregate options, so explicit obsolete configuration should be visible without asking users to enable debug logging.

💚 How did you test it?

  • ./gradlew :sentry:test :sentry-android-core:testReleaseUnitTest :sentry-spring-boot:test :sentry-spring-boot-jakarta:test :sentry-spring-boot-4:test
  • ./gradlew spotlessApply apiDump
  • Verified JVM external configuration writes through SystemOutLogger with debug disabled
  • Verified Android manifest warnings appear at Log.ASSERT with debug disabled
  • Verified Spring warnings use a configured fatal logger without enabling debug logging

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

#skip-changelog

⚠️ Merge this PR using a merge commit (not squash). Only the collection branch is squash-merged into main.

Initialize the fatal logger before external configuration is merged and route legacy Logs and Metrics migration warnings through the always-visible startup logger across core, Android, and Spring Boot.

Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Aug 13, 2026

sentry Bot commented Aug 13, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.52.0 (1) release

⚙️ sentry-android Build Distribution Settings

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 393.18 ms 477.06 ms 83.88 ms
Size 0 B 0 B 0 B

"The Android manifest option 'io.sentry.logs.enabled' is no longer supported. "
+ "Manual Sentry.logger() calls no longer require it, and automatic logging "
+ "integrations now require their own opt-ins.");
options

lbloder Aug 18, 2026
edited
Loading

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

we could let the user know about the the integration opt-in keys here. (io.sentry.timber.logs.enabled, io.sentry.logcat.logs.enabled)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL