Skip to content

CaptureStackTraceOptions

CaptureStackTraceOptions = object

Defined in: packages/core/src/error/capture-stack-trace.ts:5

optional maxFrames?: number

Defined in: packages/core/src/error/capture-stack-trace.ts:24

Maximum number of stack frames to capture. This is not supported in all environments.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/stackTraceLimit

Defaults to Infinity.


optional reference?: Function

Defined in: packages/core/src/error/capture-stack-trace.ts:14

A function to use as the reference point for the stack trace.

The stack frames above the function will be skipped (including the function itself).

Defaults to the captureStackTrace function itself.