Reference documentation and code samples for the Cloud Trace API class Google::Cloud::Trace::SpanKind.
SpanKind represents values for the "kind" field of span.
Inherits
- Object
Methods
.get
def self.get(name) -> SpanKindReturns the SpanKind given a symbol or string representation.
- name (String, Symbol) — The name of the SpanKind.
-
(SpanKind) — The SpanKind, or
nilif not known.
#to_s
def to_s() -> StringReturns the string representation of this SpanKind
- (String) — String representation.
#to_sym
def to_sym() -> SymbolReturns the symbolic representation of this SpanKind
- (Symbol) — Symbol representation.
Constants
UNSPECIFIED
value: new :SPAN_KIND_UNSPECIFIED
The :SPAN_KIND_UNSPECIFIED value
RPC_SERVER
value: new :RPC_SERVER
The :RPC_SERVER value
RPC_CLIENT
value: new :RPC_CLIENT
The :RPC_CLIENT value