# installHooks() function · @imqueue/datadog

Source: https://imqueue.org/api/datadog/latest/datadog.installhooks/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/datadog 3.2.0 — generated reference, not hand-written

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:**

```typescript
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](https://imqueue.org/api/datadog/latest/datadog.callhooks/) | hooks to install |


**Returns:**

boolean

`true` if this call installed them, `false` if the object was already instrumented

