Enum Class Span.Kind

java.lang.Object
java.lang.Enum<Span.Kind>
codes.grow.packages.skywalking.tracing.query.Span.Kind
All Implemented Interfaces:
Serializable, Comparable<Span.Kind>, Constable
Enclosing class:
Span

public static enum Span.Kind extends Enum<Span.Kind>
Span kind (wire values are lower case).
  • Enum Constant Details

    • UNSPECIFIED

      public static final Span.Kind UNSPECIFIED
      "unspecified".
    • INTERNAL

      public static final Span.Kind INTERNAL
      "internal".
    • SERVER

      public static final Span.Kind SERVER
      "server".
    • CLIENT

      public static final Span.Kind CLIENT
      "client".
    • PRODUCER

      public static final Span.Kind PRODUCER
      "producer".
    • CONSUMER

      public static final Span.Kind CONSUMER
      "consumer".
  • Method Details

    • values

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

      public static Span.Kind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • wireValue

      public String wireValue()
      Wire value.
      Returns:
      lower-case name
    • parse

      public static Span.Kind parse(String text)
      Parses a wire value or vendor spelling ("SPAN_KIND_SERVER", "Server", …).
      Parameters:
      text - kind text
      Returns:
      kind (UNSPECIFIED when unknown)