Quick Start
Azure OpenAI uses the standard
openai Python package with the AzureOpenAI client class. The same OpenAIInstrumentor works for both.Tested Versions
HoneyHive’s Azure OpenAI integration is tested against the following versions on PyPI, as of May 2026. Newer patch releases are generally safe; if you hit an issue, pin to these versions to reproduce a known-good configuration.
Requires Python 3.11+.
What Gets Traced
The instrumentor automatically captures:- Chat completions -
client.chat.completions.create()with inputs, outputs, and token usage - Tool / function calls - Each tool call with arguments and results
- Embeddings -
client.embeddings.create()requests - Streaming responses - Streamed completions with aggregated tokens
Example: Basic Chat Completion
Environment Configuration
Troubleshooting
Traces not appearing
- Check environment variables - Ensure
HH_API_KEYis set - Pass the tracer provider - The instrumentor must receive
tracer_provider=tracer.provider:
- Initialize before making calls - Call
instrument()before creating theAzureOpenAIclient
Deployment name vs model name
In Azure OpenAI, themodel parameter is your deployment name, not the underlying model name:
Related
OpenAI Integration
Standard OpenAI API integration
Enrich Your Traces
Add user IDs and custom metadata to traces
Distributed Tracing
Trace calls across service boundaries

