Skip to main content

Azure OpenAI HoneyHive Tracing Quickstart

This guide provides a comprehensive overview of tracing Azure OpenAI API calls using HoneyHive, with practical examples for different tracing scenarios.

Getting Started

Prerequisites

Before you begin, make sure you have:
  • Python 3.8+
  • An Azure OpenAI resource with API access
  • A HoneyHive API key

Installation

Install the required packages:

Environment Setup

Create a .env file with your API credentials:

Basic Configuration

Here’s how to initialize HoneyHive tracing and the Azure OpenAI client:

Tracing Types

1. Basic Chat Completions

The simplest form of tracing captures basic chat completions with the Azure OpenAI API:

2. Function Calling Traces

Trace function calling with tools and handling of tool responses:

3. Structured Output Traces

Trace structured outputs using response formats:
You can also trace Pydantic model parsing:

4. Multi-Turn Conversation Traces

Track conversations across multiple turns:
Usage example:

5. Reasoning Model Traces

Trace model behavior for complex reasoning tasks with temperature control:

Conclusion

HoneyHive provides comprehensive observability for your Azure OpenAI applications, allowing you to monitor API usage, performance, and quality. By integrating HoneyHive tracing into your Azure OpenAI applications, you can:
  • Debug issues more effectively
  • Optimize token usage
  • Improve response quality
  • Monitor application performance
  • Track user interactions
For more information, refer to the HoneyHive Documentation and Azure OpenAI Documentation. Happy tracing!