Class CassandraClientParser


  • public class CassandraClientParser
    extends java.lang.Object
    Provides reasonable defaults for the data contained in cassandra client spans. Subclass to customize, for example, to add tags based on response headers.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void request​(com.datastax.driver.core.Statement statement, brave.SpanCustomizer customizer)
      Override to change what data from the statement are parsed into the span representing it.
      void response​(com.datastax.driver.core.ResultSet resultSet, brave.SpanCustomizer customizer)
      Override to parse data from the result set into the span modeling it.
      protected java.lang.String spanName​(com.datastax.driver.core.Statement statement)
      Returns the span name of the statement.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CassandraClientParser

        public CassandraClientParser()
    • Method Detail

      • spanName

        protected java.lang.String spanName​(com.datastax.driver.core.Statement statement)
        Returns the span name of the statement. Defaults to the lower-camel case type name.
      • response

        public void response​(com.datastax.driver.core.ResultSet resultSet,
                             brave.SpanCustomizer customizer)
        Override to parse data from the result set into the span modeling it.