feat(jul): [Logs and Metrics Enable Flags 3] Add Logs opt-in - #5942
Open
adinauer wants to merge 2 commits into
Open
feat(jul): [Logs and Metrics Enable Flags 3] Add Logs opt-in#5942adinauer wants to merge 2 commits into
adinauer wants to merge 2 commits into
Conversation
Require an explicit JUL handler opt-in before forwarding records as Sentry Logs. Support Java and LogManager configuration while keeping event and breadcrumb capture unchanged. Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Aug 12, 2026
Contributor
|
📲 Install BuildsAndroid
|
Contributor
Performance metrics 🚀
|
This was referenced Aug 12, 2026
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
runningcode
approved these changes
Aug 13, 2026
runningcode
left a comment
Contributor
There was a problem hiding this comment.
same comment as the other if we decide to change how this is named
runningcode
reviewed
Aug 13, 2026
|
|
||
| ### Features | ||
|
|
||
| - Add an explicit Logs opt-in to the JUL handler ([#5942](https://github.com/getsentry/sentry-java/pull/5942)) |
Contributor
There was a problem hiding this comment.
we should probably consolidate these once the stack is merged
runningcode
approved these changes
Aug 13, 2026
runningcode
left a comment
Contributor
There was a problem hiding this comment.
LGTM! same comment as the other if we decide to change how this is named
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 to the JULSentryHandler. The option defaults tofalse, exposes a public Java getter/setter, and can be configured throughLogManagerwithio.sentry.jul.SentryHandler.enableLogs=true.The handler requires both this local opt-in and the existing aggregate core Logs flag before forwarding records as Sentry Logs. 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 later in this stack. JUL applications can opt in through either programmatic configuration or their existing
logging.propertiessetup.💚 How did you test it?
./gradlew spotlessApply apiDump./gradlew :sentry-jul:test📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Continue adding integration-local Logs opt-ins before removing the aggregate core Logs flag.