monitor-api - v1.8.0
    Preparing search index...

    Interface ErrorCollectorConfig

    Configuration for the optional error collector.

    interface ErrorCollectorConfig {
        dedupWindow?: number;
        maxHistory: number;
        sanitize?: (
            details: MonitorErrorDetails,
            source: MonitorErrorSource,
        ) => MonitorErrorDetails | null;
    }
    Index

    Properties

    dedupWindow?: number

    Milliseconds during which consecutive identical errors are deduplicated. Defaults to 1,000.

    maxHistory: number

    Maximum number of error entries to retain.

    sanitize?: (
        details: MonitorErrorDetails,
        source: MonitorErrorSource,
    ) => MonitorErrorDetails | null

    Optional sanitizer. Return null to drop the error.