AgentTracing
Defined in: agents/src/otel.ts:63
Properties
Section titled “Properties”bindModelProvider
Section titled “bindModelProvider”readonly bindModelProvider: ModelProviderBinding;Defined in: agents/src/otel.ts:68
onEvent
Section titled “onEvent”readonly onEvent: (event) => void | Promise<void>;Defined in: agents/src/otel.ts:67
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event |
AgentEvent |
Returns
Section titled “Returns”void | Promise<void>
onLifecycle
Section titled “onLifecycle”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.
Methods
Section titled “Methods”close()
Section titled “close()”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.
Returns
Section titled “Returns”void
options()
Section titled “options()”Call Signature
Section titled “Call Signature”options(): RunOptions;Defined in: agents/src/otel.ts:69
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”options<T>(options): T;Defined in: agents/src/otel.ts:70
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends RunOptions |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
T |
Returns
Section titled “Returns”T