Setu-TS
    Preparing search index...

    Interface DiagnosticsEvent

    One execution observation.

    sequence is a dense per-instance counter shared by every event. Timing is monotonic relative to runtime initialization: atMs is the inclusive start offset and durationMs the inclusive elapsed time INCLUDING downstream next() work — a consumer must not sum parent and child durations as exclusive CPU time. Both are null for events recorded before the runtime (and therefore the monotonic origin) existed; fabricated timings are never emitted.

    operationId links the event to its operation and is allocated at entry, so a child may reference a parent whose completion record appears later. parentOperationId is null for an operation root (a lifecycle boundary or the request operation itself).

    statusCode, traceId, and spanId are optional: a status is present only on request/handler records that produced one, and trace identifiers are read only from an already-resolved telemetry service and validated before being carried — an absent, invalid, or throwing read is reported as absence.

    0.8.0

    interface DiagnosticsEvent {
        atMs: number | null;
        durationMs: number | null;
        kind: DiagnosticsEventKind;
        nodeId: string | null;
        operationId: string;
        outcome: DiagnosticsEventOutcome;
        parentOperationId: string | null;
        sequence: number;
        spanId?: string;
        stage: DiagnosticsEventStage;
        statusCode?: number;
        traceId?: string;
    }
    Index
    atMs: number | null

    Monotonic start offset in ms from runtime initialization; null before the runtime existed.

    durationMs: number | null

    Inclusive monotonic elapsed ms; null before the runtime existed.

    What family of boundary produced the event.

    nodeId: string | null

    Composition node the event is about, when one exists.

    operationId: string

    Operation identifier allocated at entry (op<N>).

    How the observed operation completed.

    parentOperationId: string | null

    Parent operation identifier, or null for an operation root.

    sequence: number

    Dense per-instance sequence number; the cursor currency of IDiagnosticsSource.read.

    spanId?: string

    Validated 16-character lowercase-hex span id, when an active span reported one.

    The measured kernel boundary (fixed vocabulary).

    statusCode?: number

    Response status, when the boundary produced one — recorded as the application set it, so not necessarily a valid HTTP status, but always finite: a non-finite status is omitted.

    traceId?: string

    Validated 32-character lowercase-hex trace id, when an active span reported one.