Module spring.data.cassandra
Class ObservableReactiveSessionFactory
java.lang.Object
org.springframework.data.cassandra.observability.ObservableReactiveSessionFactory
Factory to wrap a
ReactiveSession
with ObservableReactiveSession
.- Since:
- 4.0
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReactiveSession
wrap
(ReactiveSession session, io.micrometer.observation.ObservationRegistry observationRegistry) Wrap theCqlSession
with aCqlSessionObservationInterceptor
.static ReactiveSession
wrap
(ReactiveSession session, String remoteServiceName, io.micrometer.observation.ObservationRegistry observationRegistry) Wrap theCqlSession
with aCqlSessionObservationInterceptor
.
-
Method Details
-
wrap
public static ReactiveSession wrap(ReactiveSession 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 ReactiveSession wrap(ReactiveSession 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:
-