- A HoneyHive API key (see below)
- Your LLM provider’s API key (OpenAI, Anthropic, etc.)
Three Steps to Add Tracing
1. Install HoneyHive
2. Add 5 Lines in Your App’s Runtime Entry Point
Keep the order the same in every runtime: initialize
HoneyHiveTracer first, then initialize instrumentors with tracer.provider.3. Run Your App
Integration Examples
Example 1: Simple Chatbot
Example 2: Multi-Step Application
Use Environment Variables (Recommended)
For production, use environment variables instead of hardcoding keys:What Gets Traced?
All LLM SDK calls are traced automatically, including:- Chat completions, embeddings, and streaming
- Function/tool calling
- Multi-turn conversations
Multiple Providers
Using OpenAI and Anthropic in the same app? Initialize both instrumentors with the same tracer:Troubleshooting
Traces not appearing
Traces not appearing
- Check
HH_API_KEYis set correctly - Verify your API key is scoped to the HoneyHive project you’re viewing
- Wait 2-3 seconds for processing
- Look for errors in console output
Import errors
Import errors
Install with the extras for your provider:
Multiple files in my app - where do I add the tracing setup?
Multiple files in my app - where do I add the tracing setup?
Add it in the entry point or runtime setup layer where your app boots. For scripts, that is often
main.py or app.py. For Lambda, use cached setup outside the handler. For FastAPI, Flask, or Django, initialize once at app startup and create a session per request. See Tracer Initialization for the runtime-specific patterns.What’s Next?
Enrich Your Traces
Add metadata, user feedback, and custom evaluations
Production Best Practices
Deploy tracing to production with proper configuration

