Skip to main content
Settings = object
Defined in: src/settings.ts:6

Properties

attributes

readonly attributes: Record<string, any>
A map of attributes applied to every trace produced by this client. Defined in: src/settings.ts:17

genai

readonly genai: object
Defined in: src/settings.ts:34

batchOptions

optional batchOptions: BufferConfig
BatchSpanProcessor configuration. Ignored unless spanProcessor === 'batch'.

spanProcessor

optional 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.

readonly printCallLink: boolean
Prints links in terminal to Weave UI for ops. Defined in: src/settings.ts:12

Default

true

useCallsComplete

useCallsComplete: boolean
Sends finished calls to the calls/complete endpoint (start+end paired client-side) instead of the legacy call/upsert_batch path. Defined in: src/settings.ts:32

Default

true

useOTelV2

useOTelV2: boolean
Routes OTel-capable integrations through their OTel variant. Defined in: src/settings.ts:24

Default

true