Getting Started
The Vercel AI SDK provides powerful React hooks and utilities for building AI-powered applications with built-in OpenTelemetry support. The SDK includes experimental telemetry features that automatically capture detailed traces of AI operations, making integration with Orq.ai straightforward for comprehensive observability.Prerequisites
Before you begin, ensure you have:- An Orq.ai account and an API Key.
- Vercel AI SDK v3.1+ (with telemetry support).
- Node.js 18+ and TypeScript support.
- API keys for your LLM providers (OpenAI, Anthropic, etc.).
Install Dependencies
Configure Orq.ai
Set up your environment variables to connect to Orq.ai’s OpenTelemetry collector: Unix/Linux/macOS:Integrations
The Vercel AI SDK has built-in OpenTelemetry support through theexperimental_telemetry option. Here’s how to integrate it with Orq.ai:
Built-in Telemetry (Recommended)
The simplest way to enable telemetry is using the SDK’s native support:Pydantic AI Logs