footprintjs - v11.2.0
    Preparing search index...

    Interface ObservedAttempt

    An attempt an outside system ran on its own, as an adapter reports it (AttemptContext.observed). Only these fields are read — each once; anything else on the object is dropped.

    A report with of stands for one attempt of the SDK's series; a report without one stands for the SDK's WHOLE call, its count unknown — "the SDK ran this" rather than a pretended count.

    interface ObservedAttempt {
        attempt?: number;
        durationMs: number;
        error?: unknown;
        of?: number;
        outcome: "ok" | "failed" | "timeout" | "aborted";
        source?: string;
        startedAt?: number;
        target: string;
    }
    Index
    attempt?: number

    Which attempt of the SDK's own series, 1-based. Default 1.

    durationMs: number

    How long it took, milliseconds — finite and ≥ 0.

    error?: unknown

    The error of an attempt that did not succeed — served under the run's redaction rule, never kept as thrown.

    of?: number

    The attempts the SDK allows in total, when it says (≥ attempt).

    outcome: "ok" | "failed" | "timeout" | "aborted"

    How the SDK's attempt ended. An SDK cannot pause a flowchart, so 'paused' is refused.

    source?: string

    Who ran it — a name like target. Default 'sdk'.

    startedAt?: number

    When it started, epoch milliseconds. Default: the report's arrival minus durationMs.

    target: string

    The outside target — a name from code: 1–128 characters, no control, format or line-separator character.