Expand description
Telemetry: lifecycle callbacks, options and the built-in tracing spans.
Lifecycle callbacks are awaited concurrently and isolate unwinding panics.
The two execute_* wrappers preserve the actual call result.
Integrations are injected per call through
TelemetryOptions::integrations; there is no global registry.
Callback settlement and wrapper ordering follow the Vercel AI SDK
(packages/ai/src/telemetry/create-telemetry-dispatcher.ts); see NOTICE.
Structs§
- Abort
Event - A streaming call was aborted by cancellation.
- Embed
EndEvent - An embedding call finished.
- Embed
Start Event - An embedding call started.
- EndEvent
- A call finished.
- Error
Event - An error occurred.
- Model
Call Context - Context of a model call handed to
Telemetry::execute_language_model_call. - Model
Call EndEvent - A model call finished and its tool calls were parsed.
- Model
Call Start Event - A model call is about to be made.
- Model
Identity - Provider and model ids of the model handling a call.
- Recorded
Inputs - Inputs recorded when
record_inputsis enabled. - Rerank
EndEvent - A rerank call finished.
- Rerank
Start Event - A rerank call started.
- Start
Event - A call started.
- Step
EndEvent - A step finished.
- Step
Start Event - A step started.
- Telemetry
Options - Telemetry configuration of a call.
- Tool
Execution Context - Context of a tool execution handed to
Telemetry::execute_tool. - Tool
Execution EndEvent - A tool execution finished.
- Tool
Execution Start Event - A tool execution is about to start.
- Tool
Outcome - The successful outcome of a tool execution.
Enums§
- Error
Phase - Where an error occurred.
- Model
Call Outcome - Result of a model call as seen by
Telemetry::execute_language_model_call.
Constants§
- WARNINGS_
TARGET - Target used for adapter warnings.
Traits§
- Telemetry
- A telemetry integration with awaited lifecycle callbacks.