Enum JdbcObservation

java.lang.Object
java.lang.Enum<JdbcObservation>
net.ttddyy.observation.tracing.JdbcObservation
All Implemented Interfaces:
io.micrometer.observation.docs.DocumentedObservation, Serializable, Comparable<JdbcObservation>, java.lang.constant.Constable

public enum JdbcObservation extends Enum<JdbcObservation> implements io.micrometer.observation.docs.DocumentedObservation
DocumentedObservation for JDBC operations.
Author:
Tadaya Tsuyukubo
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Span created when a JDBC connection takes place.
    Span created when executing a query.
    Span created when working with JDBC result set.
  • Field Summary

    Fields inherited from interface io.micrometer.observation.docs.DocumentedObservation

    EMPTY, EMPTY_EVENT_NAMES
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.micrometer.observation.docs.DocumentedObservation

    createNotStarted, getContextualName, getDefaultConvention, getEvents, getHighCardinalityKeyNames, getLowCardinalityKeyNames, getName, getPrefix, observation, observation, observation, start, start, start
  • Enum Constant Details

    • CONNECTION

      public static final JdbcObservation CONNECTION
      Span created when a JDBC connection takes place.
    • QUERY

      public static final JdbcObservation QUERY
      Span created when executing a query.
    • RESULT_SET

      public static final JdbcObservation RESULT_SET
      Span created when working with JDBC result set.
  • Method Details

    • values

      public static JdbcObservation[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static JdbcObservation valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null