Class CqlSessionTracingObservationHandler
java.lang.Object
org.springframework.data.cassandra.observability.CqlSessionTracingObservationHandler
- All Implemented Interfaces:
io.micrometer.observation.ObservationHandler<CqlSessionContext>
,io.micrometer.tracing.handler.TracingObservationHandler<CqlSessionContext>
public class CqlSessionTracingObservationHandler
extends Object
implements io.micrometer.tracing.handler.TracingObservationHandler<CqlSessionContext>
A
TracingObservationHandler
for CqlSessionContext
.- Since:
- 4.0.0
- Author:
- Greg Turnquist
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micrometer.observation.ObservationHandler
io.micrometer.observation.ObservationHandler.AllMatchingCompositeObservationHandler, io.micrometer.observation.ObservationHandler.CompositeObservationHandler, io.micrometer.observation.ObservationHandler.FirstMatchingCompositeObservationHandler
Nested classes/interfaces inherited from interface io.micrometer.tracing.handler.TracingObservationHandler
io.micrometer.tracing.handler.TracingObservationHandler.TracingContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.micrometer.tracing.Tracer
void
onStart
(CqlSessionContext context) void
onStop
(CqlSessionContext context) boolean
supportsContext
(io.micrometer.observation.Observation.Context context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micrometer.tracing.handler.TracingObservationHandler
getParentSpan, getRequiredSpan, getSpanName, getTracingContext, onError, onEvent, onScopeClosed, onScopeOpened, tagSpan
-
Constructor Details
-
CqlSessionTracingObservationHandler
public CqlSessionTracingObservationHandler(io.micrometer.tracing.Tracer tracer)
-
-
Method Details
-
onStart
- Specified by:
onStart
in interfaceio.micrometer.observation.ObservationHandler<CqlSessionContext>
-
onStop
- Specified by:
onStop
in interfaceio.micrometer.observation.ObservationHandler<CqlSessionContext>
-
supportsContext
public boolean supportsContext(io.micrometer.observation.Observation.Context context) - Specified by:
supportsContext
in interfaceio.micrometer.observation.ObservationHandler<CqlSessionContext>
- Specified by:
supportsContext
in interfaceio.micrometer.tracing.handler.TracingObservationHandler<CqlSessionContext>
-
getTracer
public io.micrometer.tracing.Tracer getTracer()- Specified by:
getTracer
in interfaceio.micrometer.tracing.handler.TracingObservationHandler<CqlSessionContext>
-