-
-
Notifications
You must be signed in to change notification settings - Fork 475
feat(core): [Logs and Metrics Enable Flags 9] Warn for legacy Logs configuration #5950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat/warn-legacy-logs-manifest
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3733,6 +3733,21 @@ public void merge(final @NotNull ExternalOptions options) { | |
| } | ||
| } | ||
|
|
||
| if (options.isEnableLogs() != null) { | ||
| if (options.isEnableLogs()) { | ||
| logger.log( | ||
| SentryLevel.WARNING, | ||
| "The 'logs.enabled' option is no longer supported. Manual Sentry.logger() calls no " | ||
| + "longer require it, and automatic logging integrations now require their own " | ||
| + "opt-ins."); | ||
| } else { | ||
| logger.log( | ||
| SentryLevel.WARNING, | ||
| "The 'logs.enabled' option no longer disables manual Sentry.logger() calls. Automatic " | ||
| + "logging integrations remain disabled unless enabled through their own opt-ins."); | ||
| } | ||
| } | ||
|
Comment on lines
+3747
to
+3749
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The migration warning for the deprecated Suggested FixThe warning should be logged using a mechanism that is not dependent on the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
|
|
||
| if (options.isEnableMetrics() != null) { | ||
| getMetrics().setEnabled(options.isEnableMetrics()); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Legacy logs warning never surfaces
Medium Severity
The migration warning for legacy
logs.enabledis written throughSentryOptions.loggerinsidemerge. External configuration is merged inpreInitConfigurationswhile that logger is stillNoOpLogger;initLoggerruns only afterward. Users withsentry.properties, env vars, or system properties therefore get no diagnostic, sologs.enabled=falseis ignored without notice.Reviewed by Cursor Bugbot for commit 8a414c2. Configure here.