Enum opentelemetry_stackdriver::proto::google::devtools::cloudtrace::v2::span::SpanKind [−][src]
#[repr(i32)]
pub enum SpanKind {
Unspecified,
Internal,
Server,
Client,
Producer,
Consumer,
}Expand description
Type of span. Can be used to specify additional relationships between spans in addition to a parent/child relationship.
Variants
Unspecified. Do NOT use as default. Implementations MAY assume SpanKind.INTERNAL to be default.
Indicates that the span is used internally. Default value.
Indicates that the span covers server-side handling of an RPC or other remote network request.
Indicates that the span covers the client-side wrapper around an RPC or other remote request.
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).
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).
Implementations
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for SpanKind
impl UnwindSafe for SpanKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Wrap the input message T in a tonic::Request