Skip to content

Deprecate EnableStructuredLogging and EnableMetrics settings - #1538

Merged
tustanivsky merged 2 commits into
mainfrom
deprecate-structured-logging-and-metrics-settings
Aug 13, 2026
Merged

tustanivsky merged 2 commits into
mainfrom
deprecate-structured-logging-and-metrics-settings

Conversation

@tustanivsky

@tustanivsky tustanivsky commented Aug 13, 2026 •

Copy link
Copy Markdown
Collaborator

This PR deprecates the EnableStructuredLogging and EnableMetrics plugin settings and makes both features enabled unconditionally.

Structured logging and metrics have been on by default since 1.11.0. This removes the opt-out so behavior is consistent across all platforms and SDK integrations. Applications that want to filter logs or metrics can still do so via BeforeLogHandler / BeforeMetricHandler.

Changes

  • Force structured logging and metrics on at every platform init site (GenericPlatform, Apple, Android, SentrySubsystem, SentryOutputDevice)
  • Mark EnableStructuredLogging / EnableMetrics deprecated: hidden from the settings UI (DeprecatedProperty meta), still parsed from existing .ini files, values ignored
  • Drop the now-meaningless EnableStructuredLogging / EnableMetrics EditConditions from the dependent structured-logging and metrics sub-settings
  • Remove the dead bIsStructuredLoggingEnabled flag from FSentryOutputDevice
  • Remove the redundant EnableStructuredLogging=True / EnableMetrics=True -ini overrides from the desktop and Android integration tests

Documentation

Related items

Structured logging and metrics are now enabled unconditionally at every
platform init site. Both settings are marked deprecated, hidden from the
settings UI while still parsed from existing .ini files, and their values
are ignored. Filtering remains available via BeforeLogHandler and
BeforeMetricHandler.
@tustanivsky tustanivsky changed the title Deprecate EnableStructuredLogging and EnableMetrics settings Deprecate EnableStructuredLogging and EnableMetrics settings Aug 13, 2026
@tustanivsky tustanivsky changed the title Deprecate EnableStructuredLogging and EnableMetrics settings Deprecate EnableStructuredLogging and EnableMetrics settings Aug 13, 2026
@tustanivsky
tustanivsky merged commit f1de442 into main Aug 13, 2026
150 of 153 checks passed
@tustanivsky
tustanivsky deleted the deprecate-structured-logging-and-metrics-settings branch August 13, 2026 17:34
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