| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Inspect the Spring Environment before SDK initialization and emit tailored migration warnings for explicit sentry.metrics.enabled values without binding or applying the obsolete property. Co-Authored-By: Claude <noreply@anthropic.com>
|
Sorry, something went wrong.
📲 Install BuildsAndroid
|
Sorry, something went wrong.
Performance metrics 🚀
|
Sorry, something went wrong.
…y-metrics-spring # Conflicts: # sentry-spring-boot-4/src/main/java/io/sentry/spring/boot4/SentryAutoConfiguration.java # sentry-spring-boot-jakarta/src/main/java/io/sentry/spring/boot/jakarta/SentryAutoConfiguration.java # sentry-spring-boot/src/main/java/io/sentry/spring/boot/SentryAutoConfiguration.java
| .getLogger() | ||
| .log( | ||
| SentryLevel.WARNING, | ||
| "The 'sentry.metrics.enabled' property is no longer supported. Manual " |
There was a problem hiding this comment.
That string is duplicated all over the place, should we create a constant for it?
Sorry, something went wrong.
| .getLogger() | ||
| .log( | ||
| SentryLevel.WARNING, | ||
| "The 'sentry.metrics.enabled' property no longer disables manual " |
There was a problem hiding this comment.
That string is duplicated all over the place, should we create a constant for it?
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Stack (Logs and Metrics Enable Flags)
📜 Description
Detects explicit sentry.metrics.enabled configuration through Spring's Environment in all three Spring Boot variants. Migration warnings are emitted after Sentry.init, when the diagnostic logger has been initialized.
Both true and false values emit tailored migration warnings. The obsolete property is not added back to SentryProperties and does not affect manual Metrics capture. Absent configuration emits no warning.
💡 Motivation and Context
After removal of the aggregate Metrics option, Spring's relaxed binder ignores the old property. Inspecting the complete Spring Environment preserves a useful migration diagnostic across property files, YAML, environment variables, command-line values, and other property sources.
💚 How did you test it?
📝 Checklist
🔮 Next steps
Avoid starting the Metrics batch worker thread until the first accepted Metrics item.
#skip-changelog