Interface StackTraceOrBuilder (2.42.0)

public interface StackTraceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getStackFrames()

public abstract StackTrace.StackFrames getStackFrames()

Stack frames in this stack trace. A maximum of 128 frames are allowed.

.google.devtools.cloudtrace.v2.StackTrace.StackFrames stack_frames = 1;

Returns
Type Description
StackTrace.StackFrames

The stackFrames.

getStackFramesOrBuilder()

public abstract StackTrace.StackFramesOrBuilder getStackFramesOrBuilder()

Stack frames in this stack trace. A maximum of 128 frames are allowed.

.google.devtools.cloudtrace.v2.StackTrace.StackFrames stack_frames = 1;

Returns
Type Description
StackTrace.StackFramesOrBuilder

getStackTraceHashId()

public abstract long 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.

int64 stack_trace_hash_id = 2;

Returns
Type Description
long

The stackTraceHashId.

hasStackFrames()

public abstract boolean hasStackFrames()

Stack frames in this stack trace. A maximum of 128 frames are allowed.

.google.devtools.cloudtrace.v2.StackTrace.StackFrames stack_frames = 1;

Returns
Type Description
boolean

Whether the stackFrames field is set.