Skip to main content

Configuration Reference

Option Details

apiKey

Required - Your Observ API key for authentication and tracing. Get your API key from Settings → API Keys.

recall

Intelligently cache similar prompts and reduce costs in a few lines of code. When enabled, Observ analyzes the semantic meaning of prompts and returns cached responses for similar requests, even if the exact wording differs.
Semantic caching can reduce costs by up to 85% on similar prompts. It’s especially effective for: - Customer support chatbots - FAQ systems - Repeated queries with slight variations

environment

Tag traces with an environment identifier for filtering in the dashboard. Useful for separating production, staging, development, and test traces.
Common values: "production", "staging", "development", "test"

debug

TypeScript only - This option is not available in the Python SDK.
Enable detailed logging for debugging integration issues.
Debug mode logs:
  • API calls to Observ servers
  • Caching hits/misses
  • Tracing events
  • Error details

Complete Example

Environment Variables

Next Steps

Usage Guide

Learn how to wrap provider clients

Session Tracking

Group related calls with sessions

Custom Metadata

Attach metadata to traces

Dashboard

View your traces and analytics