Installation

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

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

Usage

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

import * as VertexAI from '@google-cloud/vertexai'
import { Latitude } from '@latitude-data/sdk'

new Latitude('your-api-key-here', {
  telemetry: {
    modules: {
      google_vertexai: VertexAI,
    },
  },
})