Switch to micrometer 1.10 snapshots.
Follow signature changes. See: #4191 See: spring-projects/spring-data-build#1810
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
package org.springframework.data.mongodb.observability;
|
package org.springframework.data.mongodb.observability;
|
||||||
|
|
||||||
import io.micrometer.common.docs.KeyName;
|
import io.micrometer.common.docs.KeyName;
|
||||||
import io.micrometer.observation.docs.DocumentedObservation;
|
import io.micrometer.observation.docs.ObservationDocumentation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A MongoDB-based {@link io.micrometer.observation.Observation}.
|
* A MongoDB-based {@link io.micrometer.observation.Observation}.
|
||||||
@@ -25,7 +25,7 @@ import io.micrometer.observation.docs.DocumentedObservation;
|
|||||||
* @author Greg Turnquist
|
* @author Greg Turnquist
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*/
|
*/
|
||||||
enum MongoObservation implements DocumentedObservation {
|
enum MongoObservation implements ObservationDocumentation {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Timer created around a MongoDB command execution.
|
* Timer created around a MongoDB command execution.
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ public final class MongoObservationCommandListener implements CommandListener {
|
|||||||
MongoHandlerContext observationContext = new MongoHandlerContext(event, requestContext);
|
MongoHandlerContext observationContext = new MongoHandlerContext(event, requestContext);
|
||||||
|
|
||||||
Observation observation = MongoObservation.MONGODB_COMMAND_OBSERVATION
|
Observation observation = MongoObservation.MONGODB_COMMAND_OBSERVATION
|
||||||
.observation(this.observationRegistry, observationContext) //
|
.observation(this.observationRegistry, () -> observationContext) //
|
||||||
.contextualName(observationContext.getContextualName()) //
|
.contextualName(observationContext.getContextualName()) //
|
||||||
.observationConvention(this.observationConvention) //
|
.observationConvention(this.observationConvention) //
|
||||||
.start();
|
.start();
|
||||||
|
|||||||
Reference in New Issue
Block a user