installHooks() function

Installs the hooks into an @imqueue/rpc default options object.

Hooks the user configured themselves are preserved and invoked after the tracing ones, so enabling tracing never silently drops application behaviour. Calling this twice on the same object is a no-op.

Signature:

export declare function installHooks(options: any, hooks: CallHooks): boolean;

Parameters

Parameter

Type

Description

options

any

DEFAULT_IMQ_CLIENT_OPTIONS or DEFAULT_IMQ_SERVICE_OPTIONS

hooks

CallHooks

hooks to install

Returns:

boolean

true if this call installed them, false if the object was already instrumented

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.