- Python
- TypeScript
Initialize
Get Model
Get Prompt
Returns:
PromptResult with key, version, system, userGet Prompt A/B Test
Returns:
PromptResult with key, version, system, user, ab_test_key, variant_indexSet Session
config_key and session_id.Clear Session
Record Custom Metrics
Supported LLM Providers
Auto-instrumentation available for:- OpenAI (+ OpenAI-compatible APIs: OpenRouter, LiteLLM, vLLM, Ollama, etc.)
- Anthropic
- Cohere
- AWS Bedrock
- Google Generative AI
- Mistral AI
- LangChain
- Replicate
- Vertex AI
opentelemetry-instrumentation-* package for your provider.You must use the official SDK for your provider. Raw HTTP requests (e.g.,
requests.post()) will not be traced. For OpenAI-compatible APIs, use the OpenAI SDK with a custom base_url.
