diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/observability/ZipkinIntegrationTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/observability/ZipkinIntegrationTests.java index a082d4101..308e880a0 100644 --- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/observability/ZipkinIntegrationTests.java +++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/observability/ZipkinIntegrationTests.java @@ -86,7 +86,17 @@ public class ZipkinIntegrationTests extends SampleTestRunner { @Autowired PersonRepository repository; ZipkinIntegrationTests() { - super(SampleRunnerConfig.builder().build(), OBSERVATION_REGISTRY, METER_REGISTRY); + super(SampleRunnerConfig.builder().build()); + } + + @Override + protected MeterRegistry createMeterRegistry() { + return METER_REGISTRY; + } + + @Override + protected ObservationRegistry createObservationRegistry() { + return OBSERVATION_REGISTRY; } @Override