callOptions property

CallOptions get callOptions
inherited

Creates CallOptions with authentication metadata and correlation ID.

Call this to get options with the Bearer token and correlation ID injected. A unique correlation ID is generated per call for end-to-end tracing.

A default per-RPC deadline is applied (configurable via KUMIHO_RPC_TIMEOUT_SECONDS, default 30s). Use streamCallOptions for server-streaming RPCs that must stay open indefinitely.

Implementation

CallOptions get callOptions {
  return CallOptions(metadata: _buildMetadata(), timeout: _rpcTimeout());
}