[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Trace API - Class Google::Cloud::Trace::SpanKind (v0.45.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.45.0 (latest)](/ruby/docs/reference/google-cloud-trace/latest/Google-Cloud-Trace-SpanKind)\n- [0.44.1](/ruby/docs/reference/google-cloud-trace/0.44.1/Google-Cloud-Trace-SpanKind)\n- [0.43.0](/ruby/docs/reference/google-cloud-trace/0.43.0/Google-Cloud-Trace-SpanKind)\n- [0.42.2](/ruby/docs/reference/google-cloud-trace/0.42.2/Google-Cloud-Trace-SpanKind)\n- [0.41.4](/ruby/docs/reference/google-cloud-trace/0.41.4/Google-Cloud-Trace-SpanKind) \nReference documentation and code samples for the Cloud Trace API class Google::Cloud::Trace::SpanKind.\n\nSpanKind represents values for the \"kind\" field of span. \n\nInherits\n--------\n\n- Object\n\nMethods\n-------\n\n### .get\n\n def self.get(name) -\u003e SpanKind\n\nReturns the SpanKind given a symbol or string representation. \n**Parameter**\n\n- **name** (String, Symbol) --- The name of the SpanKind. \n**Returns**\n\n- ([SpanKind](./Google-Cloud-Trace-SpanKind)) --- The SpanKind, or `nil` if not known.\n\n### #to_s\n\n def to_s() -\u003e String\n\nReturns the string representation of this SpanKind \n**Returns**\n\n- (String) --- String representation.\n\n### #to_sym\n\n def to_sym() -\u003e Symbol\n\nReturns the symbolic representation of this SpanKind \n**Returns**\n\n- (Symbol) --- Symbol representation.\n\nConstants\n---------\n\n### UNSPECIFIED\n\n**value:** new :SPAN_KIND_UNSPECIFIED \nThe `:SPAN_KIND_UNSPECIFIED` value\n\n### RPC_SERVER\n\n**value:** new :RPC_SERVER \nThe `:RPC_SERVER` value\n\n### RPC_CLIENT\n\n**value:** new :RPC_CLIENT \nThe `:RPC_CLIENT` value"]]