Stackdriver Trace V2 Client - Class StackTrace (1.4.11)

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
NameDescription
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.

Generated from protobuf field .google.devtools.cloudtrace.v2.StackTrace.StackFrames stack_frames = 1;

Returns
TypeDescription
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
NameDescription
var Google\Cloud\Trace\V2\StackTrace\StackFrames
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int|string
Returns
TypeDescription
$this