Skip to main content
LangWatch can trace calls to the Groq API, allowing you to monitor its high-speed inference capabilities. Groq provides an OpenAI-compatible endpoint, so you can reuse the otelopenai middleware with minimal changes.

Installation

Usage

Set LANGWATCH_API_KEY and GROQ_API_KEY environment variables before running.
The defer tp.Shutdown(ctx) call is essential. Without it, traces buffered in memory will be lost when your application exits.