Class: Google::Devtools::Cloudtrace::V2::StackTrace
- Inherits:
-
Object
- Object
- Google::Devtools::Cloudtrace::V2::StackTrace
- Defined in:
- lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb
Overview
A call stack appearing in a trace.
Defined Under Namespace
Classes: StackFrame, StackFrames
Instance Attribute Summary collapse
-
#stack_frames ⇒ Google::Devtools::Cloudtrace::V2::StackTrace::StackFrames
Stack frames in this stack trace.
-
#stack_trace_hash_id ⇒ Integer
The hash ID is used to conserve network bandwidth for duplicate stack traces within a single trace.
Instance Attribute Details
#stack_frames ⇒ Google::Devtools::Cloudtrace::V2::StackTrace::StackFrames
Returns Stack frames in this stack trace. A maximum of 128 frames are allowed.
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 |
# File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 250 class StackTrace # Represents a single stack frame in a stack trace. # @!attribute [rw] function_name # @return [Google::Devtools::Cloudtrace::V2::TruncatableString] # The fully-qualified name that uniquely identifies the function or # method that is active in this frame (up to 1024 bytes). # @!attribute [rw] original_function_name # @return [Google::Devtools::Cloudtrace::V2::TruncatableString] # An un-mangled function name, if `function_name` is # [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can # be fully-qualified (up to 1024 bytes). # @!attribute [rw] file_name # @return [Google::Devtools::Cloudtrace::V2::TruncatableString] # The name of the source file where the function call appears (up to 256 # bytes). # @!attribute [rw] line_number # @return [Integer] # The line number in `file_name` where the function call appears. # @!attribute [rw] column_number # @return [Integer] # The column number where the function call appears, if available. # This is important in JavaScript because of its anonymous functions. # @!attribute [rw] load_module # @return [Google::Devtools::Cloudtrace::V2::Module] # The binary module from where the code was loaded. # @!attribute [rw] source_version # @return [Google::Devtools::Cloudtrace::V2::TruncatableString] # The version of the deployed source code (up to 128 bytes). class StackFrame; end # A collection of stack frames, which can be truncated. # @!attribute [rw] frame # @return [Array<Google::Devtools::Cloudtrace::V2::StackTrace::StackFrame>] # Stack frames in this call stack. # @!attribute [rw] dropped_frames_count # @return [Integer] # The number of stack frames that were dropped because there # were too many stack frames. # If this value is 0, then no stack frames were dropped. class StackFrames; end end |
#stack_trace_hash_id ⇒ Integer
Returns 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
.
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 |
# File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 250 class StackTrace # Represents a single stack frame in a stack trace. # @!attribute [rw] function_name # @return [Google::Devtools::Cloudtrace::V2::TruncatableString] # The fully-qualified name that uniquely identifies the function or # method that is active in this frame (up to 1024 bytes). # @!attribute [rw] original_function_name # @return [Google::Devtools::Cloudtrace::V2::TruncatableString] # An un-mangled function name, if `function_name` is # [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can # be fully-qualified (up to 1024 bytes). # @!attribute [rw] file_name # @return [Google::Devtools::Cloudtrace::V2::TruncatableString] # The name of the source file where the function call appears (up to 256 # bytes). # @!attribute [rw] line_number # @return [Integer] # The line number in `file_name` where the function call appears. # @!attribute [rw] column_number # @return [Integer] # The column number where the function call appears, if available. # This is important in JavaScript because of its anonymous functions. # @!attribute [rw] load_module # @return [Google::Devtools::Cloudtrace::V2::Module] # The binary module from where the code was loaded. # @!attribute [rw] source_version # @return [Google::Devtools::Cloudtrace::V2::TruncatableString] # The version of the deployed source code (up to 128 bytes). class StackFrame; end # A collection of stack frames, which can be truncated. # @!attribute [rw] frame # @return [Array<Google::Devtools::Cloudtrace::V2::StackTrace::StackFrame>] # Stack frames in this call stack. # @!attribute [rw] dropped_frames_count # @return [Integer] # The number of stack frames that were dropped because there # were too many stack frames. # If this value is 0, then no stack frames were dropped. class StackFrames; end end |