datadog-ux-utils Documentation - v1.0.0
    Preparing search index...
    interface ComponentTelemetryConfig {
        sampleRate?: number;
        flushIntervalMs?: number;
        allowInDev?: boolean;
        sink?: (batch: ComponentMountEvent[]) => void;
    }
    Index

    Properties

    sampleRate?: number

    Fraction (0..1) of mount events to sample.

    0.25
    
    flushIntervalMs?: number

    Flush interval (ms) for queued events. Set to 0 to disable interval flushing (still flushes on threshold / visibility hidden).

    5000
    
    allowInDev?: boolean

    By default events are suppressed when env === "dev" to avoid local noise. Set allowInDev true to always record.

    false
    
    sink?: (batch: ComponentMountEvent[]) => void

    Optional custom sink callback. If provided each flush will pass a batch array; returning void. When present the internal Datadog addAction forwarding is skipped.