Repository navigation
Conversation
Isolate the URI tag filter so that registering the WebFlux observation convention does not require Boot's metrics module. Back off when Boot's observation module is unavailable. Signed-off-by: WooSeung Kim <wooseung.dev@gmail.com>
This branch has not been deployed
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.
Split out of #53038 as requested.
A Spring Boot 4.0.10 WebFlux application using
spring-boot-starter-zipkinthat defines its ownMeterRegistrybean fails to start withoutspring-boot-micrometer-metrics. WebFlux's observation auto-configuration declares its URI tag filter, which takesMetricsProperties, on the outer class, so the class cannot be introspected when the metrics module is missing. gh-48581 fixed the same problem for Spring MVC.Move the URI tag filter into a nested configuration that requires the metrics module, as Spring MVC does, so the observation convention can still be registered without it. When the Boot observation module is absent and the application supplies its own
ObservationRegistryandMeterRegistry, the auto-configuration now backs off instead of failing.