Package com.azure.core.util.tracing
Enum SpanKind
- java.lang.Object
-
- java.lang.Enum<SpanKind>
-
- com.azure.core.util.tracing.SpanKind
-
- All Implemented Interfaces:
Serializable
,Comparable<SpanKind>
public enum SpanKind extends Enum<SpanKind>
Represents the tracing span type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT
Indicates that the span covers the client-side wrapper around an RPC or other remote request.CONSUMER
Indicates that the span describes consumer receiving a message from a broker.INTERNAL
Indicates that the span is used internally.PRODUCER
Indicates that the span describes producer sending a message to a broker.SERVER
Indicates that the span covers server-side handling of an RPC or other remote request.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpanKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static SpanKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTERNAL
public static final SpanKind INTERNAL
Indicates that the span is used internally.
-
CLIENT
public static final SpanKind CLIENT
Indicates that the span covers the client-side wrapper around an RPC or other remote request.
-
SERVER
public static final SpanKind SERVER
Indicates that the span covers server-side handling of an RPC or other remote 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.
-
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.
-
-
Method Detail
-
values
public static SpanKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SpanKind c : SpanKind.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
-