Skip to content

@flarelog/sdk


@flarelog/sdk / CaptureOptions

Interface: CaptureOptions

Defined in: types.ts:220

Options for error capture methods

Properties

source?

optional source?: string

Defined in: types.ts:222

Override the source tag for this capture


metadata?

optional metadata?: Record<string, unknown>

Defined in: types.ts:224

Additional metadata to attach to error logs


level?

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

Defined in: types.ts:226

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


rethrow?

optional rethrow?: boolean

Defined in: types.ts:228

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


label?

optional label?: string

Defined in: types.ts:230

A descriptive label for what operation was being attempted

Released under the MIT License.