Learn how to integrate KeywordsAI tracing with Vercel AI SDK to monitor and analyze your AI application performance. Step-by-step guide for setting up environment variables and creating traced workflows.
.env.local
(see Step 3 below)yarn dev
to start the development servercreate-next-app
with npm, Yarn, or pnpm to bootstrap the base example:
.env.local
pnpm install
to install the required dependencies.pnpm dev
to launch the development server..env.local
file:
app/api/chat/route.ts
), enable telemetry by adding the experimental_telemetry
option to your AI SDK functions: