otelopenai
middleware with minimal changes.
Setup
You will need a Groq API key from the GroqCloud Console. Set your Groq API key as an environment variable:Example
Configure youropenai.Client
to use Groq’s base URL and your API key. Set the gen_ai.system
attribute to "groq"
to correctly identify the provider in LangWatch.
The following example assumes you have already configured the LangWatch SDK. See the Go setup guide for details.