AgentTracingOptions
Defined in: agents/src/otel.ts:41
Properties
Section titled “Properties”attributes?
Section titled “attributes?”optional attributes?: (info) => Readonly<Record<string, string | number | boolean>>;Defined in: agents/src/otel.ts:49
Explicit host-approved values only, never raw callback payloads. At most 32 scalar attributes, 64-character keys and 256-character strings, under providerkit.host.*. Non-finite numbers and other values are dropped. Do not put secrets in IDs or attributes.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
info |
Readonly<AgentSpanInfo> |
Returns
Section titled “Returns”Readonly<Record<string, string | number | boolean>>
maxRunMs?
Section titled “maxRunMs?”optional maxRunMs?: number;Defined in: agents/src/otel.ts:60
Absolute Agents observation lifetime, not an execution timeout. Default 30 minutes, max 24 hours. Does not close Core’s independently owned in-flight provider spans.
maxRuns?
Section titled “maxRuns?”optional maxRuns?: number;Defined in: agents/src/otel.ts:53
Oldest incomplete runs are closed, not cancelled, when full. Default 128, maximum 1,024.
maxSpansPerRun?
Section titled “maxSpansPerRun?”optional maxSpansPerRun?: number;Defined in: agents/src/otel.ts:57
Maximum Agents operation/relationship records per run, including ended records. Each model record can also own one Core CLIENT child. New records are skipped once full. Default 1,024, maximum 16,384.
parentContext?
Section titled “parentContext?”optional parentContext?: Context;Defined in: agents/src/otel.ts:45
Otherwise options() captures the current OTel context for each call.
tracer?
Section titled “tracer?”optional tracer?: Tracer;Defined in: agents/src/otel.ts:43
Defaults to the host’s registered tracer for @providerkit/agents. No SDK is installed.