LLM observability
Inspect prompts, responses, execution flow, and cost for AI SDK applications.
AI Tools · Const
Weights & Biases observability for the AI SDK is provided through Weave. It uses OpenTelemetry to capture AI SDK traces, including prompts, responses, flow, and cost, for inspection in Weave.
Weights & Biases is supported through Weave, which receives AI SDK telemetry through an OpenTelemetry backend. Configure the Weave endpoint, API key, and project, then register the OpenTelemetry integration and enable telemetry on supported AI SDK calls.
registerTelemetryIntegration(new OpenTelemetryIntegration());import { OpenTelemetryIntegration } from '@ai-sdk/otel';
import { registerTelemetryIntegration } from 'ai';
registerTelemetryIntegration(new OpenTelemetryIntegration());Registers the AI SDK OpenTelemetry integration so supported AI SDK calls can emit traces to a configured Weights & Biases Weave backend.
Inspect prompts, responses, execution flow, and cost for AI SDK applications.
Send AI SDK traces to a Weights & Biases project.
Analyze and improve LLM application behavior using Weave.
WeaveOpenTelemetryIntegration@ai-sdk/otelregisterTelemetryIntegrationtelemetry