Class ObservableCqlSessionFactory
java.lang.Object
org.springframework.data.cassandra.observability.ObservableCqlSessionFactory
Factory to wrap a
CqlSession
with a CqlSessionObservationInterceptor
.- Since:
- 4.0
- Author:
- Mark Paluch, Greg Turnquist
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.datastax.oss.driver.api.core.CqlSession
wrap
(com.datastax.oss.driver.api.core.CqlSession session, io.micrometer.observation.ObservationRegistry observationRegistry) Wrap theCqlSession
with aCqlSessionObservationInterceptor
.static com.datastax.oss.driver.api.core.CqlSession
wrap
(com.datastax.oss.driver.api.core.CqlSession session, String remoteServiceName, io.micrometer.observation.ObservationRegistry observationRegistry) Wrap theCqlSession
with aCqlSessionObservationInterceptor
.
-
Method Details
-
wrap
public static com.datastax.oss.driver.api.core.CqlSession wrap(com.datastax.oss.driver.api.core.CqlSession session, io.micrometer.observation.ObservationRegistry observationRegistry) Wrap theCqlSession
with aCqlSessionObservationInterceptor
.- Parameters:
session
- must not be null.observationRegistry
- must not be null.- Returns:
-
wrap
public static com.datastax.oss.driver.api.core.CqlSession wrap(com.datastax.oss.driver.api.core.CqlSession session, String remoteServiceName, io.micrometer.observation.ObservationRegistry observationRegistry) Wrap theCqlSession
with aCqlSessionObservationInterceptor
.- Parameters:
session
- must not be null.remoteServiceName
- must not be null.observationRegistry
- must not be null.- Returns:
-