Enum SpanKind

java.lang.Object
java.lang.Enum<SpanKind>
org.opensearch.telemetry.tracing.SpanKind
All Implemented Interfaces:
Serializable, Comparable<SpanKind>

@PublicApi(since="2.11.0") public enum SpanKind extends Enum<SpanKind>
Type of Span.
  • Enum Constant Details

    • CLIENT

      public static final SpanKind CLIENT
      Span represents the client side code.
    • SERVER

      public static final SpanKind SERVER
      Span represents the server side code.
    • INTERNAL

      public static final SpanKind INTERNAL
      Span represents the internal calls. This is the default value of a span type.
  • Method Details

    • values

      public static SpanKind[] 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 SpanKind 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