Class: Google::Apis::TracingV1::StackTrace
- Inherits:
-
Object
- Object
- Google::Apis::TracingV1::StackTrace
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/tracing_v1/classes.rb,
generated/google/apis/tracing_v1/representations.rb,
generated/google/apis/tracing_v1/representations.rb
Overview
StackTrace collected in a trace.
Instance Attribute Summary collapse
-
#stack_frame ⇒ Array<Google::Apis::TracingV1::StackFrame>
Stack frames of this stack trace.
-
#stack_trace_hash_id ⇒ Fixnum
The hash ID is used to conserve network bandwidth for duplicate stack traces within a single trace.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StackTrace
constructor
A new instance of StackTrace.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ StackTrace
Returns a new instance of StackTrace
45 46 47 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 45 def initialize(**args) update!(**args) end |
Instance Attribute Details
#stack_frame ⇒ Array<Google::Apis::TracingV1::StackFrame>
Stack frames of this stack trace.
Corresponds to the JSON property stackFrame
32 33 34 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 32 def stack_frame @stack_frame end |
#stack_trace_hash_id ⇒ Fixnum
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 occurance 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
.
Corresponds to the JSON property stackTraceHashId
43 44 45 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 43 def stack_trace_hash_id @stack_trace_hash_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
50 51 52 53 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 50 def update!(**args) @stack_frame = args[:stack_frame] if args.key?(:stack_frame) @stack_trace_hash_id = args[:stack_trace_hash_id] if args.key?(:stack_trace_hash_id) end |