Cloud Trace API - Class Google::Cloud::Trace::SpanKind (v0.42.2)

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) -> SpanKind

Returns the SpanKind given a symbol or string representation.

Parameter
  • name (String, Symbol) — The name of the SpanKind.
Returns
  • (SpanKind) — The SpanKind, or nil if not known.

#to_s

def to_s() -> String

Returns the string representation of this SpanKind

Returns
  • (String) — String representation.

#to_sym

def to_sym() -> Symbol

Returns the symbolic representation of this SpanKind

Returns
  • (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