Installation

To install the Latitude SDK, use your preferred package manager:

Usage

Vercel AI SDK is supported through Latitude’s custom Vercel integration. To use it, you need to install the @latitude-data/telemetry package:

npm install @latitude-data/telemetry
# or
yarn add @latitude-data/telemetry
# or
pnpm add @latitude-data/telemetry

To trace Vercel AI SDK calls with Latitude, you need to install the Vercel AI SDK and initialize the Latitude SDK with your API key and the custom Vercel processor:

Latitude’s Vercel integration already traces all LLM calls made with Vercel’s AI SDK, you should remove any other Latitude instrumentation from your project in order to avoid generating duplicated traces.