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

    Constructors
    Constructor
    Description
    CqlSessionTracingObservationHandler(io.micrometer.tracing.Tracer tracer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.micrometer.tracing.Tracer
     
    void
     
    void
     
    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

      public void onStart(CqlSessionContext context)
      Specified by:
      onStart in interface io.micrometer.observation.ObservationHandler<CqlSessionContext>
    • onStop

      public void onStop(CqlSessionContext context)
      Specified by:
      onStop in interface io.micrometer.observation.ObservationHandler<CqlSessionContext>
    • supportsContext

      public boolean supportsContext(io.micrometer.observation.Observation.Context context)
      Specified by:
      supportsContext in interface io.micrometer.observation.ObservationHandler<CqlSessionContext>
      Specified by:
      supportsContext in interface io.micrometer.tracing.handler.TracingObservationHandler<CqlSessionContext>
    • getTracer

      public io.micrometer.tracing.Tracer getTracer()
      Specified by:
      getTracer in interface io.micrometer.tracing.handler.TracingObservationHandler<CqlSessionContext>