(::Integer) — The hash ID is used to conserve network bandwidth for duplicate
stack traces within a single trace.
Often multiple spans will have identical stack traces.
The first occurrence of a stack trace should contain both the
stackFrame content and a value in stackTraceHashId.
Subsequent spans within the same request can refer
to that stack trace by only setting stackTraceHashId.
#stack_trace_hash_id=
defstack_trace_hash_id=(value)->::Integer
Parameter
value (::Integer) — The hash ID is used to conserve network bandwidth for duplicate
stack traces within a single trace.
Often multiple spans will have identical stack traces.
The first occurrence of a stack trace should contain both the
stackFrame content and a value in stackTraceHashId.
Subsequent spans within the same request can refer
to that stack trace by only setting stackTraceHashId.
Returns
(::Integer) — The hash ID is used to conserve network bandwidth for duplicate
stack traces within a single trace.
Often multiple spans will have identical stack traces.
The first occurrence of a stack trace should contain both the
stackFrame content and a value in stackTraceHashId.
Subsequent spans within the same request can refer
to that stack trace by only setting stackTraceHashId.
[[["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-09 UTC."],[],[],null,["# Cloud Trace V2 API - Class Google::Cloud::Trace::V2::StackTrace (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-StackTrace)\n- [1.2.1](/ruby/docs/reference/google-cloud-trace-v2/1.2.1/Google-Cloud-Trace-V2-StackTrace)\n- [1.1.0](/ruby/docs/reference/google-cloud-trace-v2/1.1.0/Google-Cloud-Trace-V2-StackTrace)\n- [1.0.1](/ruby/docs/reference/google-cloud-trace-v2/1.0.1/Google-Cloud-Trace-V2-StackTrace)\n- [0.9.0](/ruby/docs/reference/google-cloud-trace-v2/0.9.0/Google-Cloud-Trace-V2-StackTrace)\n- [0.8.2](/ruby/docs/reference/google-cloud-trace-v2/0.8.2/Google-Cloud-Trace-V2-StackTrace)\n- [0.7.0](/ruby/docs/reference/google-cloud-trace-v2/0.7.0/Google-Cloud-Trace-V2-StackTrace)\n- [0.6.1](/ruby/docs/reference/google-cloud-trace-v2/0.6.1/Google-Cloud-Trace-V2-StackTrace)\n- [0.5.0](/ruby/docs/reference/google-cloud-trace-v2/0.5.0/Google-Cloud-Trace-V2-StackTrace)\n- [0.4.1](/ruby/docs/reference/google-cloud-trace-v2/0.4.1/Google-Cloud-Trace-V2-StackTrace)\n- [0.3.5](/ruby/docs/reference/google-cloud-trace-v2/0.3.5/Google-Cloud-Trace-V2-StackTrace) \nReference documentation and code samples for the Cloud Trace V2 API class Google::Cloud::Trace::V2::StackTrace.\n\nA call stack appearing in a trace. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #stack_frames\n\n def stack_frames() -\u003e ::Google::Cloud::Trace::V2::StackTrace::StackFrames\n\n**Returns**\n\n- ([::Google::Cloud::Trace::V2::StackTrace::StackFrames](./Google-Cloud-Trace-V2-StackTrace-StackFrames)) --- Stack frames in this stack trace. A maximum of 128 frames are allowed.\n\n### #stack_frames=\n\n def stack_frames=(value) -\u003e ::Google::Cloud::Trace::V2::StackTrace::StackFrames\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Trace::V2::StackTrace::StackFrames](./Google-Cloud-Trace-V2-StackTrace-StackFrames)) --- Stack frames in this stack trace. A maximum of 128 frames are allowed. \n**Returns**\n\n- ([::Google::Cloud::Trace::V2::StackTrace::StackFrames](./Google-Cloud-Trace-V2-StackTrace-StackFrames)) --- Stack frames in this stack trace. A maximum of 128 frames are allowed.\n\n### #stack_trace_hash_id\n\n def stack_trace_hash_id() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The hash ID is used to conserve network bandwidth for duplicate stack traces within a single trace.\n\n Often multiple spans will have identical stack traces.\n The first occurrence of a stack trace should contain both the\n `stackFrame` content and a value in `stackTraceHashId`.\n\n Subsequent spans within the same request can refer\n to that stack trace by only setting `stackTraceHashId`.\n\n### #stack_trace_hash_id=\n\n def stack_trace_hash_id=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The hash ID is used to conserve network bandwidth for duplicate stack traces within a single trace.\n\n\n Often multiple spans will have identical stack traces.\n The first occurrence of a stack trace should contain both the\n `stackFrame` content and a value in `stackTraceHashId`.\n\n Subsequent spans within the same request can refer\nto that stack trace by only setting `stackTraceHashId`. \n**Returns**\n\n- (::Integer) --- The hash ID is used to conserve network bandwidth for duplicate stack traces within a single trace.\n\n Often multiple spans will have identical stack traces.\n The first occurrence of a stack trace should contain both the\n `stackFrame` content and a value in `stackTraceHashId`.\n\n Subsequent spans within the same request can refer\n to that stack trace by only setting `stackTraceHashId`."]]