Skip to content

Commit 36ddd26

Browse files
shakuzenchristophstrobl
authored andcommitted
Adapt to SampleTestRunner refactor.
See: micrometer-metrics/tracing#57 Closes: #4159
1 parent 6197655 commit 36ddd26

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/observability/ZipkinIntegrationTests.java

+11-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,17 @@ public class ZipkinIntegrationTests extends SampleTestRunner {
8686
@Autowired PersonRepository repository;
8787

8888
ZipkinIntegrationTests() {
89-
super(SampleRunnerConfig.builder().build(), OBSERVATION_REGISTRY, METER_REGISTRY);
89+
super(SampleRunnerConfig.builder().build());
90+
}
91+
92+
@Override
93+
protected MeterRegistry createMeterRegistry() {
94+
return METER_REGISTRY;
95+
}
96+
97+
@Override
98+
protected ObservationRegistry createObservationRegistry() {
99+
return OBSERVATION_REGISTRY;
90100
}
91101

92102
@Override

0 commit comments

Comments
 (0)