TraceOptionsOptions that control stack trace capture for tracing wrappers.
captureStackTrace can disable capture or provide a lazy stack string.
options
Source effect/Tracer.ts:2593 lines
export interface TraceOptions {
readonly TraceOptions.captureStackTrace?: boolean | LazyArg<string | undefined> | undefinedcaptureStackTrace?: boolean | type LazyArg<A> = () => AA zero-argument function that produces a value when invoked.
When to use
Use to type a lazy value provider that should not run until called.
Example (Creating a lazy argument)
import { Function } from "effect"
const constNull: Function.LazyArg<null> = Function.constant(null)
LazyArg<string | undefined> | undefined
}Referenced by 6 symbols