Skip to content

SigNoz/vercel-ai-sdk-opentelemetry-example

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, install all the necessary dependencies:

pnpm install

Next create a .env.local file with the following:

OPENAI_API_KEY=<your-openai-api-key>
SIGNOZ_INGESTION_KEY=<your-signoz-ingestion-key>

Then, run the development server:

pnpm dev

In your terminal, you should see output from OpenTelemetry when the application starts, confirming that the instrumentation.ts file was loaded correctly.

vercel-run-output

Open http://localhost:3000 with your browser to see the result and interact with the application.

After usign the chatbot, you should be able to view traces and logs in your SigNoz Cloud platform:

Traces

vercel-traces-view vercel-traces-detailed-view

Logs

vercel-logs starter_msg_log feedback_log

You can also create custom dashboards using these logs and traces attributes:

Import Dashboard

Go to the Dashboards tab in SigNoz.

Click on + New Dashboard

Go to Import JSON Screenshot 2025-07-28 at 12 05 38 PM

Import the Vercel Chatbot.json file from the repo.

Your dashboard should now be imported and look something like this: Screenshot 2025-07-28 at 12 04 06 PM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published