Skip to main content
Langtrace integrates directly with the Vercel AI Sdk, offering detailed, real-time insights into performance metrics such as accuracy, evaluations, and latency.

Setup

Install Langtrace’s SDK and initialize the SDK in your code.

Usage

Here’s a quick example of how to use Langtrace with Vercel AI SDK:
api/chat/route.ts

Recipes

To get started with integrating Langtrace in your NextJS application, you can refer to these NextJS examples in our recipes repository: NextJS Integration Examples