Class: Google::Cloud::Trace::V2::StackTrace
- Inherits:
-
Object
- Object
- Google::Cloud::Trace::V2::StackTrace
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/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::Cloud::Trace::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::Cloud::Trace::V2::StackTrace::StackFrames
Returns Stack frames in this stack trace. A maximum of 128 frames are allowed.
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 |
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 330 class StackTrace include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents a single stack frame in a stack trace. # @!attribute [rw] function_name # @return [::Google::Cloud::Trace::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::Cloud::Trace::V2::TruncatableString] # An un-mangled function name, if `function_name` is mangled. # To get information about name mangling, run # [this search](https://www.google.com/search?q=cxx+name+mangling). # The name can be fully-qualified (up to 1024 bytes). # @!attribute [rw] file_name # @return [::Google::Cloud::Trace::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::Cloud::Trace::V2::Module] # The binary module from where the code was loaded. # @!attribute [rw] source_version # @return [::Google::Cloud::Trace::V2::TruncatableString] # The version of the deployed source code (up to 128 bytes). class StackFrame include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A collection of stack frames, which can be truncated. # @!attribute [rw] frame # @return [::Array<::Google::Cloud::Trace::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 include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods 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
.
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 |
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 330 class StackTrace include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents a single stack frame in a stack trace. # @!attribute [rw] function_name # @return [::Google::Cloud::Trace::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::Cloud::Trace::V2::TruncatableString] # An un-mangled function name, if `function_name` is mangled. # To get information about name mangling, run # [this search](https://www.google.com/search?q=cxx+name+mangling). # The name can be fully-qualified (up to 1024 bytes). # @!attribute [rw] file_name # @return [::Google::Cloud::Trace::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::Cloud::Trace::V2::Module] # The binary module from where the code was loaded. # @!attribute [rw] source_version # @return [::Google::Cloud::Trace::V2::TruncatableString] # The version of the deployed source code (up to 128 bytes). class StackFrame include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A collection of stack frames, which can be truncated. # @!attribute [rw] frame # @return [::Array<::Google::Cloud::Trace::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 include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |