Vercel AI SDK Observability & Monitoring with OpenTelemetry SigNoz has released a guide for setting up OpenTelemetry-based observability and monitoring for the Vercel AI SDK, enabling developers to trace AI function calls, request durations, and custom metadata in Next.js applications. The integration streams telemetry data to SigNoz, allowing teams to debug latency, set performance alerts, and improve reliability of production AI features. The guide includes step-by-step instructions for instrumenting Next.js apps, configuring OpenTelemetry exporters, and enabling Vercel AI SDK telemetry. What is Vercel AI SDK Observability? Vercel AI SDK observability gives you visibility into AI function calls, request durations, inputs, outputs, and custom metadata across your Next.js application. This guide covers setting up OpenTelemetry instrumentation to capture traces and spans from the Vercel AI SDK and stream that data to SigNoz. With full Vercel AI SDK observability in SigNoz, you can trace AI interactions end-to-end, debug latency, set alerts on degraded performance, and improve the reliability of your AI features. This is especially valuable for production-grade Vercel observability where visibility into model behavior and user interactions is critical. Explore the SigNoz Vercel AI SDK example chatbot https://github.com/SigNoz/vercel-ai-sdk-opentelemetry-example , which includes observability and monitoring via OpenTelemetry. Prerequisites - Next.js app - Vercel AI SDK integrated into the app - SigNoz setup choose one : SigNoz Cloud account https://signoz.io/teams/ with an active ingestion key- Self-hosted SigNoz instance - Network access from your app to the chosen SigNoz endpoint Instrument your Next.js App with OpenTelemetry For detailed OpenTelemetry instrumentation instructions for Next.js, see the Next.js OpenTelemetry instrumentation guide https://signoz.io/docs/instrumentation/opentelemetry-nextjs/ . Configure Vercel AI SDK Observability with OpenTelemetry Step 1. Install OpenTelemetry packages npm install @vercel/otel @opentelemetry/api Step 2. Update next.config.mjs to include instrumentationHook This step is only needed when using NextJs 14 and below js / @type {import 'next' .NextConfig} / const nextConfig = { // include instrumentationHook experimental feature experimental: { instrumentationHook: true, }, } export default nextConfig Step 3. Create instrumentation.ts file in root project directory js import { registerOTel, OTLPHttpJsonTraceExporter } from '@vercel/otel' // Add otel logging import { diag, DiagConsoleLogger, DiagLogLevel } from '@opentelemetry/api' diag.setLogger new DiagConsoleLogger , DiagLogLevel.ERROR // set diaglog level to DEBUG when debugging export function register { registerOTel { serviceName: '