Skip to content
providerkit
GitHub

AgentTracingOptions

Defined in: agents/src/otel.ts:41

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.

Parameter Type
info Readonly<AgentSpanInfo>

Readonly<Record<string, string | number | boolean>>


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.


optional maxRuns?: number;

Defined in: agents/src/otel.ts:53

Oldest incomplete runs are closed, not cancelled, when full. Default 128, maximum 1,024.


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.


optional parentContext?: Context;

Defined in: agents/src/otel.ts:45

Otherwise options() captures the current OTel context for each call.


optional tracer?: Tracer;

Defined in: agents/src/otel.ts:43

Defaults to the host’s registered tracer for @providerkit/agents. No SDK is installed.