Enum Class Span.Kind

java.lang.Object
java.lang.Enum<Span.Kind>
io.micrometer.tracing.Span.Kind
All Implemented Interfaces:
Serializable, Comparable<Span.Kind>, Constable
Enclosing interface:
Span

public static enum Span.Kind extends Enum<Span.Kind>
Type of span. Can be used to specify additional relationships between spans in addition to a parent/child relationship.

Documentation of the enum taken from OpenTelemetry.

  • Enum Constant Details

    • SERVER

      public static final Span.Kind SERVER
      Indicates that the span covers server-side handling of an RPC or other remote request.
    • CLIENT

      public static final Span.Kind CLIENT
      Indicates that the span covers the client-side wrapper around an RPC or other remote request.
    • PRODUCER

      public static final Span.Kind PRODUCER
      Indicates that the span describes producer sending a message to a broker. Unlike client and server, there is no direct critical path latency relationship between producer and consumer spans.
    • CONSUMER

      public static final Span.Kind CONSUMER
      Indicates that the span describes consumer receiving a message from a broker. Unlike client and server, there is no direct critical path latency relationship between producer and consumer spans.
  • 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