# Class StackTrace (1.20.0)

1.20.0 (latest) 1.19.0 1.18.0 1.17.0 1.16.2 1.15.0 1.14.1 1.13.5 1.12.0 1.11.3 1.10.0 1.9.1 1.8.0 1.7.3 1.6.2 1.5.1 1.4.0 1.3.4 1.2.0 1.1.0 1.0.0 0.24.2 0.23.0 0.22.1

    StackTrace(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A call stack appearing in a trace.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `stack_frames` | `https://docs.cloud.google.com/python/docs/reference/cloudtrace/latest/google.cloud.trace_v2.types.StackTrace.StackFrames` Stack frames in this stack trace. A maximum of 128 frames are allowed. |
| `stack_trace_hash_id` | `int` 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`. |

## Classes

### StackFrame

    StackFrame(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a single stack frame in a stack trace.

### StackFrames

    StackFrames(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A collection of stack frames, which can be truncated.