Skip to content
Français

ObservationOptions

import type { ObservationOptions } from "@elie-laloum/outpost/core";
  • transporterOptional
    Transport | undefined
    Optional caller-owned transport for run snapshots and events under runs/<id>/. Execution engines register and close tracking sessions; constructing a client or reading never creates records. Without it, readRun and watchRun refuse.
  • heartbeatMsOptional
    number | undefined
    Tracking heartbeat interval in milliseconds, default 5000, a positive safe integer within the timer range. Applies only to recorded running executions.
  • abandonAfterMsOptional
    number | undefined
    Heartbeat expiry delay in milliseconds, default 30000; must exceed heartbeatMs. Expiry reports suspected abandonment on read, never recovery authorization.
  • redactOptional
    readonly RegExp[] | undefined
    Regular expressions applied recursively to event strings, keys and scope strings before delivery. Each rule replaces all matches; its lastIndex is preserved.
  • sinksOptional
    readonly ObservationSink[] | undefined
    Receivers attached to this root and inherited by every child.
  • scopeOptional
    ObservationScope | undefined
    Initial correlation fields; child scopes override only explicitly supplied fields.
  • capacityOptional
    number | undefined
    Maximum events waiting per asynchronous sink, default 1024; on overflow the newest are dropped and counted. A value that is not a positive integer throws.
  • deliveryTimeoutMsOptional
    number | undefined
    Maximum wait for one asynchronous delivery or sink flush, default 5000; a sink that exceeds it is disabled for the hub’s lifetime. A value that is not a positive integer throws.
  • verboseOptional
    boolean | undefined
    Explicitly allow full model request/response events. Does not enable verbose journal retention by itself.
export interface ObservationOptions extends ObservationHubOptions {
  readonly transporter?: Transport;
  readonly heartbeatMs?: number;
  readonly abandonAfterMs?: number;
}