public static enum Span.SpanKind extends Enum<Span.SpanKind> implements com.google.protobuf.ProtocolMessageEnum
Type of span. Can be used to specify additional relationships between spans in addition to a parent/child relationship.Protobuf enum
google.devtools.cloudtrace.v2.Span.SpanKind| Enum Constant and 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 network request.
|
SPAN_KIND_UNSPECIFIED
Unspecified.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
CLIENT_VALUE
Indicates that the span covers the client-side wrapper around an RPC or
other remote request.
|
static int |
CONSUMER_VALUE
Indicates that the span describes consumer receiving a message from a
broker.
|
static int |
INTERNAL_VALUE
Indicates that the span is used internally.
|
static int |
PRODUCER_VALUE
Indicates that the span describes producer sending a message to a broker.
|
static int |
SERVER_VALUE
Indicates that the span covers server-side handling of an RPC or other
remote network request.
|
static int |
SPAN_KIND_UNSPECIFIED_VALUE
Unspecified.
|
| Modifier and Type | Method and Description |
|---|---|
static Span.SpanKind |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Span.SpanKind> |
internalGetValueMap() |
static Span.SpanKind |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Span.SpanKind |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Span.SpanKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Span.SpanKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Span.SpanKind SPAN_KIND_UNSPECIFIED
Unspecified. Do NOT use as default. Implementations MAY assume SpanKind.INTERNAL to be default.
SPAN_KIND_UNSPECIFIED = 0;public static final Span.SpanKind INTERNAL
Indicates that the span is used internally. Default value.
INTERNAL = 1;public static final Span.SpanKind SERVER
Indicates that the span covers server-side handling of an RPC or other remote network request.
SERVER = 2;public static final Span.SpanKind CLIENT
Indicates that the span covers the client-side wrapper around an RPC or other remote request.
CLIENT = 3;public static final Span.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).
PRODUCER = 4;public static final Span.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. receiving a message from a pubsub service subscription).
CONSUMER = 5;public static final Span.SpanKind UNRECOGNIZED
public static final int SPAN_KIND_UNSPECIFIED_VALUE
Unspecified. Do NOT use as default. Implementations MAY assume SpanKind.INTERNAL to be default.
SPAN_KIND_UNSPECIFIED = 0;public static final int INTERNAL_VALUE
Indicates that the span is used internally. Default value.
INTERNAL = 1;public static final int SERVER_VALUE
Indicates that the span covers server-side handling of an RPC or other remote network request.
SERVER = 2;public static final int CLIENT_VALUE
Indicates that the span covers the client-side wrapper around an RPC or other remote request.
CLIENT = 3;public static final int PRODUCER_VALUE
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).
PRODUCER = 4;public static final int CONSUMER_VALUE
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. receiving a message from a pubsub service subscription).
CONSUMER = 5;public static Span.SpanKind[] values()
for (Span.SpanKind c : Span.SpanKind.values()) System.out.println(c);
public static Span.SpanKind valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Span.SpanKind valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Span.SpanKind forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Span.SpanKind> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Span.SpanKind valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.