Class: Google::Apis::TracingV1::StackTrace

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_frameArray<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_idFixnum

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

Returns:

  • (Fixnum)


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