Settings = object
Defined in: src/settings.ts:3
Properties
attributes
Defined in: src/settings.ts:14 A map of attributes applied to every trace produced by this client.readonlyattributes:Record<string,any>
genai
Defined in: src/settings.ts:23readonlygenai:object
batchOptions?
optionalbatchOptions?:BufferConfig
BatchSpanProcessor configuration. Ignored unless spanProcessor === 'batch'.
spanProcessor?
How GenAI spans are exported.optionalspanProcessor?:"batch"|"simple"|SpanProcessor
'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.SpanProcessorinstance: a user-supplied processor. The caller owns its lifecycle; the Weave OTLP exporter targeting/agents/otel/v1/tracesis not used.
printCallLink
Defined in: src/settings.ts:9 Prints links in terminal to Weave UI for ops.readonlyprintCallLink:boolean
Default
true
useOTelV2
useOTelV2: boolean
Defined in: src/settings.ts:21
Routes OTel-capable integrations through their OTel variant.
Default
true