Conversation
Add opt-in Micrometer registry configuration for Spring Boot 2, 3, and 4 when the sentry-micrometer artifact is present.\n\nExpose polling configuration, register the Sentry registry with Spring's composite registry, and verify active and passive metric delivery through sample system tests.\n\nCo-Authored-By: Claude <noreply@anthropic.com>
Contributor
|
This was referenced Sep 15, 2026
📲 Install BuildsAndroid
|
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 (Micrometer)
📜 Description
Add opt-in Micrometer integration for Spring Boot 2, 3, and 4.
When
sentry-micrometerand Micrometer are on the classpath, settingsentry.micrometer.enabled=truecreates aSentryMeterRegistrybean that Spring adds to its composite registry.sentry.micrometer.poll-interval-milliscontrols passive polling and defaults to 60 seconds.The artifact remains optional and is not added transitively by the existing starters. The Spring Boot samples add Actuator and verify that active HTTP metrics and passively polled process metrics reach real Sentry metric envelopes.
💡 Motivation and Context
Spring Boot applications commonly use Micrometer through Actuator. Thin conditional configuration lets those applications add Sentry as another metrics destination without replacing existing registries or enabling the integration merely because a class happens to be present.
Importing the configuration from the existing Sentry auto-configuration keeps lifecycle and initialization ordering aligned across all three supported Spring Boot generations.
💚 How did you test it?
The Spring Boot 2, 3, and 4
MetricsSystemTestsuites also passed against the repository mock Sentry server on port 18080. They verifyhttp.server.requestsactive metrics and passively polledprocess.uptimemetrics in captured envelopes.📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Complete cross-SDK documentation and evaluate build-plugin installation separately.