Enum SpanKind

java.lang.Object
java.lang.Enum<SpanKind>
org.bithon.agent.sdk.tracing.SpanKind
All Implemented Interfaces:
Serializable, Comparable<SpanKind>, java.lang.constant.Constable

public enum SpanKind extends Enum<SpanKind>
Author:
frank.chen021@outlook.com
Date:
14/5/25 9:20 pm
  • Enum Constant Details

    • INTERNAL

      public static final SpanKind INTERNAL
      .
    • CLIENT

      public static final SpanKind CLIENT
      A client is a termination of trace in current context. It spreads the trace context to next hop.

      For such type, 'targetType' and 'uri' must be filled in `tags`

    • SERVER

      public static final SpanKind SERVER
      Indicates that the span covers server-side handling of an RPC or other remote network request.
    • PRODUCER

      public static final SpanKind 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 (e.g. publishing a message to a pubsub service).
    • CONSUMER

      public static final SpanKind 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 (e.g. publishing a message to a pubsub service).
  • Constructor Details

    • SpanKind

      private SpanKind()
  • 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