ErrorReportingOptions interface

Module @runic-artifex/views in @runic-artifex/views 0.23.0

interface ErrorReportingOptions

Properties

maxReportsPerMinute

readonly maxReportsPerMinute?: number;

The most reports sent per minute; later ones are counted and the count is sent with the next report. Default 10.

maxMessageLength

readonly maxMessageLength?: number;

The most characters of a message. Default 1024.

maxStackLength

readonly maxStackLength?: number;

The most characters of a stack. Default 4096.

maxStackLines

readonly maxStackLines?: number;

The most lines of a stack. Default 30.

runtimeErrors

readonly runtimeErrors?: boolean;

Whether errors the Views runtime catches are reported. Default true.

redact

readonly redact?: (report: ClientErrorReport) => ClientErrorReport | undefined;

Called with each report after the built-in trimming and redaction, to remove more, such as user data in messages. Return the report to send, or undefined to drop it.