otelopenai middleware used for OpenAI. Configure the client to point to the xAI endpoint.
Installation
Usage
Set
LANGWATCH_API_KEY and XAI_API_KEY environment variables before running.Related
- Capturing RAG - Learn how to capture RAG data from retrievers and tools
- Capturing Metadata and Attributes - Add custom metadata and attributes to your traces and spans
- Capturing Evaluations & Guardrails - Log evaluations and implement guardrails in your Grok applications