openai
Tracing instrumentation for OpenAI API clients.
Overview
Provides automatic tracing for the OpenAI Java SDK with support for:
Chat Completions API: Messages, model, temperature, tokens, tool calls, and streaming
Responses API: Structured output tracing
Images API: Image generation and editing requests
Use instrument(client) to enable tracing on an OpenAIClient instance. All API calls will automatically capture request/response attributes following OpenTelemetry GenAI semantic conventions.
Using in your project
To use the openai module in your project, add the following dependency:
dependencies {
implementation("org.jetbrains.ai.tracy:tracy-openai:$version")
}Content copied to clipboard