Skip to main content
LangWatch supports tracing local models served by Ollama through its OpenAI-compatible endpoint.

Installation

Usage

Set LANGWATCH_API_KEY environment variable before running. Ollama runs locally so no API key is needed for the model.
The defer tp.Shutdown(ctx) call is essential. Without it, traces buffered in memory will be lost when your application exits.