Skip to content

DispatchInfo

Defined in: src/types.ts:313

Metadata passed to dispatch hooks before and after RPC method execution.

optional authDomain?: string;

Defined in: src/types.ts:336

Authentication domain, empty string when anonymous.


optional authenticated?: boolean;

Defined in: src/types.ts:338

True when the call was authenticated.


optional cancelled?: boolean;

Defined in: src/types.ts:349

True when a stream was cancelled by the client.


optional claims?: Record<string, unknown>;

Defined in: src/types.ts:353

Verified claims of the authenticated principal. Emitters MUST redact these by key before writing them — an access log outlives the token it describes.


optional deferral?: AccessLogDeferral;

Defined in: src/types.ts:367

Where to hand a record that still needs the final on-wire response size. Installed by transports that can measure it (HTTP); absent elsewhere, in which case a hook emits inline.


optional externalizedBytes?: number;

Defined in: src/types.ts:363

Bytes uploaded to external storage during this call. These never appear in the response body — only a pointer batch does — so they are invisible to transport-level accounting and are frequently the largest of the three byte figures.


optional httpStatus?: number;

Defined in: src/types.ts:343

HTTP transport: the status code the response went out with. Absent on transports that have no such thing (pipe, Unix socket, TCP).


optional kind?: TransportKind;

Defined in: src/types.ts:324

Coarse transport identifier — pipe for stdio, http for fetch handlers, unix for AF_UNIX.


method: string;

Defined in: src/types.ts:315

RPC method name.


methodType: string;

Defined in: src/types.ts:317

“unary” or “stream”.


optional principal?: string;

Defined in: src/types.ts:334

Authenticated principal, empty string when anonymous.


optional protocol?: string;

Defined in: src/types.ts:326

Logical service / protocol name.


optional protocolHash?: string;

Defined in: src/types.ts:330

SHA-256 hex of the canonical description of the protocol that owns the dispatched method – not the server’s primary. Always required in the access log, where it is the registry key for decoding archived records.


optional protocolVersion?: string;

Defined in: src/types.ts:332

Operator-supplied protocol-contract version label (optional).


optional remoteAddr?: string;

Defined in: src/types.ts:340

HTTP transport: remote IP:port.


optional requestBytes?: number;

Defined in: src/types.ts:358

On-wire size of the request body as received, before decompression: what the peer actually sent. Distinct from the logical Arrow byte counts in CallStatistics, which measure what the worker processed and routinely differ by orders of magnitude.


optional requestData?: Uint8Array<ArrayBufferLike>;

Defined in: src/types.ts:345

Self-contained Arrow IPC stream of the request batch (unary + stream init only).


requestId: string | null;

Defined in: src/types.ts:321

Client-supplied request identifier, or null.


serverId: string;

Defined in: src/types.ts:319

Server identifier.


optional sessionAction?: "none" | "resume" | "open" | "close";

Defined in: src/types.ts:374

Sticky-session lifecycle action observed during dispatch — one of "none" / "resume" / "open" / "close". Omitted when sticky is disabled or the request never touched the sticky middleware.


optional sessionId?: string;

Defined in: src/types.ts:370

Sticky session ID (24-char hex). Present only when the request was bound to a sticky session or the method opened/closed one.


optional streamId?: string;

Defined in: src/types.ts:347

Stream lifecycle identifier (32-char lowercase hex); empty on unary.