Add Scope closing validation to ObservationValidator by seonghyeoklee · Pull Request #7253 · micrometer-metrics/micrometer (original) (raw)

shakuzen

approved these changes Mar 11, 2026

jonatan-ivanov

jonatan-ivanov

@seonghyeoklee @jonatan-ivanov

Add two new opt-in validation capabilities for TestObservationRegistry:

Both validations are opt-in via the TestObservationRegistryBuilder to avoid breaking existing tests in reactive contexts where scope handling may follow different patterns.

Closes micrometer-metricsgh-6329

Signed-off-by: seonghyeoklee dltjdgur327@gmail.com

@seonghyeoklee @jonatan-ivanov

Signed-off-by: seonghyeoklee dltjdgur327@gmail.com

jonatan-ivanov

@jonatan-ivanov

etrandafir93 pushed a commit to etrandafir93/micrometer that referenced this pull request

Mar 21, 2026

…ics#7253)

Add two new opt-in validation capabilities for TestObservationRegistry:

Both validations are opt-in via the TestObservationRegistryBuilder to avoid breaking existing tests in reactive contexts where scope handling may follow different patterns.

Closes micrometer-metricsgh-6329

Signed-off-by: seonghyeoklee dltjdgur327@gmail.com Co-authored-by: Jonatan Ivanov jonatan.ivanov@gmail.com

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

[ Show hidden characters]({{ revealButtonHref }})