Basic Setup
The setup is the same for all providers:- Import the Observ SDK and your chosen provider
- Create an Observ instance with your API key
- Wrap the model with
observ.wrap() - Use the model with Vercel AI SDK functions
Provider Examples
- OpenAI
- Anthropic
- Google
- Mistral
- Cohere
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 viaproviderOptions:
Session Tracking
Custom Metadata
Combined
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
