Class CassandraObservationContext

java.lang.Object
io.micrometer.observation.Observation.Context
io.micrometer.observation.transport.SenderContext<Object>
org.springframework.data.cassandra.observability.CassandraObservationContext
All Implemented Interfaces:
io.micrometer.observation.Observation.ContextView

public class CassandraObservationContext extends io.micrometer.observation.transport.SenderContext<Object>
A Observation.Context for CqlSession.
Since:
4.0
Author:
Greg Turnquist, Mark Paluch
  • Constructor Summary

    Constructors
    Constructor
    Description
    CassandraObservationContext(com.datastax.oss.driver.api.core.cql.Statement<?> statement, String remoteServiceName, boolean prepare, String methodName, String sessionName, String keyspaceName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    com.datastax.oss.driver.api.core.metadata.Node
     
     
    com.datastax.oss.driver.api.core.cql.Statement<?>
     
    boolean
     
    void
    setNode(com.datastax.oss.driver.api.core.metadata.Node node)
     

    Methods inherited from class io.micrometer.observation.transport.SenderContext

    getCarrier, getKind, getRemoteServiceAddress, getRemoteServiceName, getSetter, setCarrier, setRemoteServiceAddress, setRemoteServiceName

    Methods inherited from class io.micrometer.observation.Observation.Context

    addHighCardinalityKeyValue, addHighCardinalityKeyValues, addLowCardinalityKeyValue, addLowCardinalityKeyValues, clear, computeIfAbsent, containsKey, get, getAllKeyValues, getContextualName, getError, getHighCardinalityKeyValue, getHighCardinalityKeyValues, getLowCardinalityKeyValue, getLowCardinalityKeyValues, getName, getOrDefault, getParentObservation, getRequired, put, remove, removeHighCardinalityKeyValue, removeHighCardinalityKeyValues, removeLowCardinalityKeyValue, removeLowCardinalityKeyValues, setContextualName, setError, setName, setParentObservation, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CassandraObservationContext

      public CassandraObservationContext(com.datastax.oss.driver.api.core.cql.Statement<?> statement, String remoteServiceName, boolean prepare, String methodName, String sessionName, String keyspaceName)
  • Method Details

    • getStatement

      public com.datastax.oss.driver.api.core.cql.Statement<?> getStatement()
    • isPrepare

      public boolean isPrepare()
    • getMethodName

      public String getMethodName()
    • getSessionName

      public String getSessionName()
    • getKeyspaceName

      public String getKeyspaceName()
    • setNode

      public void setNode(com.datastax.oss.driver.api.core.metadata.Node node)
    • getNode

      @Nullable public com.datastax.oss.driver.api.core.metadata.Node getNode()