Skip to main content
LangWatch supports tracing Google Gemini models through Google Cloud Vertex AI’s OpenAI-compatible endpoint.

Installation

Usage

Set LANGWATCH_API_KEY and GEMINI_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.