Skip to content

Commit b828729

Browse files
committed
Adapt to changes in Micrometer APIs.
Micrometer has updated some of its APIs and we must adjust. Closes: #4055
1 parent 39114a6 commit b828729

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pom.xml

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
<project.type>multi</project.type>
2929
<dist.id>spring-data-mongodb</dist.id>
3030
<springdata.commons>3.0.0-SNAPSHOT</springdata.commons>
31+
<micrometer>1.10.0-SNAPSHOT</micrometer>
32+
<micrometer-tracing>1.0.0-SNAPSHOT</micrometer-tracing>
33+
<micrometer-docs-generator>1.0.0-SNAPSHOT</micrometer-docs-generator>
3134
<mongo>4.6.0</mongo>
3235
<mongo.reactivestreams>${mongo}</mongo.reactivestreams>
3336
<jmh.version>1.19</jmh.version>

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

+3-4
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,10 @@ public class ZipkinIntegrationTests extends SampleTestRunner {
9090
}
9191

9292
@Override
93-
public BiConsumer<BuildingBlocks, Deque<ObservationHandler>> customizeObservationHandlers() {
93+
public BiConsumer<BuildingBlocks, Deque<ObservationHandler<? extends Observation.Context>>> customizeObservationHandlers() {
9494

95-
return (buildingBlocks, observationHandlers) -> {
96-
observationHandlers.addLast(new MongoTracingObservationHandler(buildingBlocks.getTracer()));
97-
};
95+
return (buildingBlocks, observationHandlers) -> observationHandlers
96+
.addLast(new MongoTracingObservationHandler(buildingBlocks.getTracer()));
9897
}
9998

10099
@Override

0 commit comments

Comments
 (0)