Skip to main content

Basic Setup

The setup is the same for all providers:
  1. Import the Observ SDK and your chosen provider
  2. Create an Observ instance with your API key
  3. Wrap the model with observ.wrap()
  4. Use the model with Vercel AI SDK functions

Provider Examples

Streaming

Streaming works automatically with all providers:
Streaming requests are fully traced in Observ, including latency metrics for each chunk.

Adding Sessions and Metadata

You can add session tracking and custom metadata via providerOptions:

Session Tracking

Custom Metadata

Combined

Learn more about Session Tracking and Custom Metadata.

Configuration Options

When creating the Observ instance, you can configure: Example with all options:

Next Steps

Session Tracking

Group related calls with session IDs

Custom Metadata

Attach metadata to your traces

Provider SDKs

Alternative: Use provider SDKs directly

Dashboard

View your traces and analytics