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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 |
getStackFrames
Stack frames in this stack trace. A maximum of 128 frames are allowed.
Generated from protobuf field .google.devtools.cloudtrace.v2.StackTrace.StackFrames stack_frames = 1;
Returns | |
---|---|
Type | Description |
Google\Cloud\Trace\V2\StackTrace\StackFrames|null |
hasStackFrames
clearStackFrames
setStackFrames
Stack frames in this stack trace. A maximum of 128 frames are allowed.
Generated from protobuf field .google.devtools.cloudtrace.v2.StackTrace.StackFrames stack_frames = 1;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Trace\V2\StackTrace\StackFrames
|
Returns | |
---|---|
Type | Description |
$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
.
Generated from protobuf field int64 stack_trace_hash_id = 2;
Returns | |
---|---|
Type | Description |
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
.
Generated from protobuf field int64 stack_trace_hash_id = 2;
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |