Enum Class SpanType

java.lang.Object
java.lang.Enum<SpanType>
com.palantir.tracing.api.SpanType
All Implemented Interfaces:
Serializable, Comparable<SpanType>, Constable

public enum SpanType extends Enum<SpanType>
  • Enum Constant Details

    • SERVER_INCOMING

      public static final SpanType SERVER_INCOMING
      Indicates that this span encapsulates server-side work of an RPC call. This is typically the outermost span of a set of calls made within one service as a result of an incoming RPC call.
    • CLIENT_OUTGOING

      public static final SpanType CLIENT_OUTGOING
      Indicates that this is the innermost span encapsulating remote work, typically the last span opened by an RPC client.
    • LOCAL

      public static final SpanType LOCAL
      Indicates a local method call or computation that does not involve RPC.
  • Method Details

    • values

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