Skip to content

Commit e6be758

Browse files
adinauerclaude
andcommitted
docs: Remove legacy enable-flag warning guidance
Document the removed aggregate options without retaining warning-only migration behavior. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8a94edb commit e6be758

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎.cursor/rules/options.mdc‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ Allows setting options via `sentry.properties` file or system properties. Fields
6161
getLogs().setSampleRate(options.getLogsSampleRate());
6262
}
6363
```
64-
- Do not add or restore `logs.enabled` or `metrics.enabled`. Legacy values are retained only long
65-
enough to emit presence-aware migration warnings and must not be applied.
64+
- Do not add or restore `logs.enabled` or `metrics.enabled`; these aggregate options are obsolete.
6665

6766
**Tests:**
6867
- `sentry/src/test/java/io/sentry/ExternalOptionsTest.kt` — test true/false/null for booleans, valid values and null for doubles
@@ -78,7 +77,7 @@ Allows setting options via `AndroidManifest.xml` `<meta-data>` tags.
7877
- Apply automatic-source options directly, for example
7978
`options.setEnableLogcatLogs(...)` for `io.sentry.logcat.logs.enabled`
8079
- Do not add or restore `io.sentry.logs.enabled` or `io.sentry.metrics.enabled`; those aggregate
81-
keys are obsolete and are read only to emit migration warnings.
80+
keys are obsolete.
8281

8382
**Tests:** `sentry-android-core/src/test/java/io/sentry/android/core/ManifestMetadataReaderTest.kt`
8483
- Test default value preserved when not in manifest
@@ -93,8 +92,8 @@ namespace instead. For example, `SentryProperties.Logging.enableLogs` binds to
9392
`sentry.logging.enable-logs` and controls Logs forwarding from the auto-configured Logback
9493
appender. `sentry.logging.enabled` separately controls whether that appender is installed.
9594

96-
Do not add or restore `sentry.logs.enabled` or `sentry.metrics.enabled`. Spring detects those legacy
97-
properties through `Environment` only to emit migration warnings; it does not bind or apply them.
95+
Do not add or restore `sentry.logs.enabled` or `sentry.metrics.enabled`; those aggregate properties
96+
are obsolete.
9897

9998
**Tests:** `sentry-spring-boot*/src/test/kotlin/.../SentryAutoConfigurationTest.kt`
10099
- Add the new property to the existing binding test

0 commit comments

Comments
 (0)