Skip to content

@flarelog/sdk


@flarelog/sdk / CaptureOptions

Interface: CaptureOptions ​

Defined in: types.ts:319

Options for error capture methods

Properties ​

source? ​

optional source?: string

Defined in: types.ts:321

Override the source tag for this capture


metadata? ​

optional metadata?: Record<string, unknown>

Defined in: types.ts:323

Additional metadata to attach to error logs


level? ​

optional level?: "WARN" | "ERROR" | "FATAL"

Defined in: types.ts:325

Custom log level for captured errors. Defaults to "ERROR"


rethrow? ​

optional rethrow?: boolean

Defined in: types.ts:327

Whether to re-throw the error after logging. Defaults to true


label? ​

optional label?: string

Defined in: types.ts:329

A descriptive label for what operation was being attempted

Released under the MIT License.