datadog-ux-utils Documentation - v1.0.0
    Preparing search index...

    Type Alias HotspotInfo

    Information passed to onHotspot and included in telemetry.

    type HotspotInfo = {
        id: string;
        commitsPerSec: number;
        renderMsPerSec: number;
        commitsInWindow: number;
        windowMs: number;
        reasons: ("commits_per_sec" | "render_ms_per_sec")[];
        at: number;
        lastCommit?: {
            phase: "mount" | "update" | "nested-update" | "unknown";
            actualDurationMs: number;
            baseDurationMs?: number;
        };
        context?: Record<string, unknown>;
    }
    Index

    Properties

    id: string

    The logical id of this detector (component name, route name, etc.).

    commitsPerSec: number

    Commits/sec over the sliding window.

    renderMsPerSec: number

    Total render ms per sec (sum of actualDuration) over the window.

    commitsInWindow: number

    Number of commits observed within the window.

    windowMs: number

    Sliding window length (ms).

    reasons: ("commits_per_sec" | "render_ms_per_sec")[]

    Which thresholds were exceeded.

    at: number

    Timestamp (ms since navigation start) of the last commit considered.

    lastCommit?: {
        phase: "mount" | "update" | "nested-update" | "unknown";
        actualDurationMs: number;
        baseDurationMs?: number;
    }

    Optional extra from the last commit (phase, baseDuration).

    context?: Record<string, unknown>

    Static context passed via props.context (if any).