> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Settings

> TypeScript SDK reference

# Settings

Ƭ **Settings**: `Object`

#### Type declaration

| Name                   | Type                                                                                                 | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| :--------------------- | :--------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `attributes`           | `Record`\<`string`, `any`>                                                                           | A map of attributes applied to every trace produced by this client.                                                                                                                                                                                                                                                                                                                                                                                          |
| `genai`                | \{ `batchOptions?`: `BufferConfig` ; `spanProcessor?`: `"batch"` \| `"simple"` \| `SpanProcessor`  } | -                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `genai.batchOptions?`  | `BufferConfig`                                                                                       | `BatchSpanProcessor` configuration. Ignored unless `spanProcessor === 'batch'`.                                                                                                                                                                                                                                                                                                                                                                              |
| `genai.spanProcessor?` | `"batch"` \| `"simple"` \| `SpanProcessor`                                                           | How GenAI spans are exported. - `'batch'` (default): `BatchSpanProcessor`, suitable for production agents and long-lived processes. - `'simple'`: `SimpleSpanProcessor`, one HTTP POST per span. Useful for tests and short-lived CLIs where deterministic flush matters more than throughput. - `SpanProcessor` instance: a user-supplied processor. The caller owns its lifecycle; the Weave OTLP exporter targeting `/agents/otel/v1/traces` is not used. |
| `printCallLink`        | `boolean`                                                                                            | Prints links in terminal to Weave UI for ops. `Default` `true`                                                                                                                                                                                                                                                                                                                                                                                               |
| `useOTelV2`            | `boolean`                                                                                            | Routes OTel-capable integrations through their OTel variant. `Default` `true`                                                                                                                                                                                                                                                                                                                                                                                |

#### Defined in

[src/settings.ts:3](https://github.com/wandb/weave/blob/9591aba8a5e77309ee0858e5ba94d31c1bd7e404/sdks/node/src/settings.ts#L3)

## Variables
