Reference documentation and code samples for the Stackdriver Trace V2 Client class StackTrace.
A call stack appearing in a trace.
Generated from protobuf message google.devtools.cloudtrace.v2.StackTrace
Namespace
Google \ Cloud \ Trace \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ stack_frames
Google\Cloud\Trace\V2\StackTrace\StackFrames
Stack frames in this stack trace. A maximum of 128 frames are allowed.
↳ stack_trace_hash_id
int|string
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
.
getStackFrames
Stack frames in this stack trace. A maximum of 128 frames are allowed.
hasStackFrames
clearStackFrames
setStackFrames
Stack frames in this stack trace. A maximum of 128 frames are allowed.
$this
getStackTraceHashId
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
.
int|string
setStackTraceHashId
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
.
var
int|string
$this