Skip to content
providerkit
GitHub

AgentTracing

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

readonly bindModelProvider: ModelProviderBinding;

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


readonly onEvent: (event) => void | Promise<void>;

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

Parameter Type
event AgentEvent

void | Promise<void>


readonly onLifecycle: LifecycleHook;

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

options() composes all three hooks with existing callbacks. For manual composition, attach each once and apply bindModelProvider last, outside other provider decorators.

close(): void;

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

Close Agents observations as incomplete and detach listeners, without cancelling work. Later callbacks are ignored. Core has no independent close API: streams already bound here remain independently observed until termination or caller abort. No exporter is flushed.

void


options(): RunOptions;

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

RunOptions

options<T>(options): T;

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

Type Parameter
T extends RunOptions
Parameter Type
options T

T