Skip to main content
reopt Handbook
reopt Handbook
Vercel Enterprise AI Platform

Platform Foundation

Platform ArchitectureAI SDK RuntimeAI Gateway Control Plane

Execution Runtime

Workflow Durable ExecutionSandbox Tool RuntimeMCP Enterprise DataQueues and Async Jobs

Prompt and Quality

Prompt Engineering and GuardrailsRAG and Retrieval-Augmented GenerationObservability and Evaluation

Operations

Security GovernanceCost and ReliabilityDeployment and AI CI/CD

Scenarios

Customer Support Agent ArchitectureInternal Research Agent ArchitectureApproval Backoffice AutomationCoding Orchestration

Orchestration Patterns

Graph-Centric OrchestrationPractical Orchestration PlaybookMulti-Agent Architecture

Appendix

Migration GuideReferencesVerificationUpdates
Handbook›Vercel Enterprise AI Platform›Observability and Evaluation
한국어KOEnglishEN

Observability and Evaluation

Connect traces, prompts, tool calls, quality scores, latency, and cost.

Written and reviewed by Eric Han · Co-founder & CTO, reopt

Key takeaways

  • AI observability must answer both operational and product questions: did it work, was it useful, what did it cost, and where did it fail.
  • The signal map connects request traces, prompt and model metadata, tool calls, retrieval results, user feedback, and evaluation scores.
  • Run a review loop: inspect failures and cost outliers, compare quality with feedback, find the cause, ship one controlled change, then re-run evaluation and watch for drift.
  • Show quality, latency, cost, and error rate together, since optimizing one metric in isolation often damages another.

Register AI SDK 7 telemetry

pnpm add @ai-sdk/otel

OpenTelemetry collection moved from ai to @ai-sdk/otel. Register the integration once at application startup, alongside the existing provider/exporter:

import { registerTelemetry } from 'ai'
import { OpenTelemetry } from '@ai-sdk/otel'

export function register() {
  registerTelemetry(new OpenTelemetry())
  // Connect the application's existing OTel provider and exporter here too.
}

Calls emit telemetry by default after an integration is registered. Apply per-call policy with telemetry, review captured inputs and outputs, and verify actual span receipt at the exporter. Renaming an option alone does not verify observability.

AI SDK 7 migration.

AI observability must answer both operational and product questions: did it work, was it useful, how much did it cost, and where did it fail?

Signal Map

SignalUse
Request traceDebug latency and failures
Prompt and model metadataExplain behavior and cost
Tool callsAudit side effects and data access
Retrieval resultsDiagnose grounding problems
User feedbackMeasure usefulness
Evaluation scoresTrack quality over time

Review Loop

  1. Inspect failures and high-cost outliers.
  2. Compare quality metrics with user feedback.
  3. Identify prompt, retrieval, model, or tool cause.
  4. Ship one controlled improvement.
  5. Re-run evaluation and monitor drift.

Dashboard Rule

Show quality, latency, cost, and error rate together. Optimizing one metric in isolation often damages another.

Related docs

Ch3. Evaluation Framework

LLMOps and AgentOps in Production · Connect offline benchmarks with online operating signals

LLMOps and AgentOps in Production

A production operating system for turning experimental AI features into reliable services

RAG and Retrieval-Augmented Generation

Build retrieval pipelines with indexing, permission filtering, reranking, and evaluation.

Ch6. Cost and Latency Optimization

LLMOps and AgentOps in Production · Manage unit cost and response time without sacrificing quality

Deployment and AI CI/CD

Ship AI systems with preview checks, evaluations, canaries, kill switches, and rollback.

RAG and Retrieval-Augmented Generation

Build retrieval pipelines with indexing, permission filtering, reranking, and evaluation.

Security Governance

Govern identity, secrets, provider policy, data handling, WAF, BotID, and approvals.

On this page

Register AI SDK 7 telemetrySignal MapReview LoopDashboard Rule