Switch to micrometer 1.10 snapshots.
Follow signature changes. See: #1309 See: spring-projects/spring-data-build#1810
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
package org.springframework.data.cassandra.observability;
|
||||
|
||||
import io.micrometer.common.docs.KeyName;
|
||||
import io.micrometer.observation.docs.DocumentedObservation;
|
||||
import io.micrometer.observation.docs.ObservationDocumentation;
|
||||
|
||||
/**
|
||||
* Cassandra-based implementation of {@link DocumentedObservation}.
|
||||
@@ -26,7 +26,7 @@ import io.micrometer.observation.docs.DocumentedObservation;
|
||||
* @author Greg Turnquist
|
||||
* @since 4.0.0
|
||||
*/
|
||||
enum CassandraObservation implements DocumentedObservation {
|
||||
enum CassandraObservation implements ObservationDocumentation {
|
||||
|
||||
/**
|
||||
* Create an {@link io.micrometer.observation.Observation} for Cassandra-based queries.
|
||||
|
||||
@@ -151,7 +151,7 @@ final class CqlSessionTracingInterceptor implements MethodInterceptor {
|
||||
CqlSessionContext observationContext = new CqlSessionContext(statement, methodName, delegateSession);
|
||||
|
||||
return CassandraObservation.CASSANDRA_QUERY_OBSERVATION //
|
||||
.observation(this.observationRegistry, observationContext) //
|
||||
.observation(this.observationRegistry, () -> observationContext) //
|
||||
.contextualName(CassandraObservation.CASSANDRA_QUERY_OBSERVATION.getContextualName()) //
|
||||
.highCardinalityKeyValues(this.observationConvention.getHighCardinalityKeyValues(observationContext)) //
|
||||
.lowCardinalityKeyValues(this.observationConvention.getLowCardinalityKeyValues(observationContext)) //
|
||||
|
||||
Reference in New Issue
Block a user