Model Providers

Groq

If you use Groq models within your application, you can trace, monitor, and analyze them with Judgment using GroqInstrumentor.

OpenTelemetry

from judgeval.tracer import Tracer
# Make sure you installed the dependency: opentelemetry-instrumentation-groq
from opentelemetry.instrumentation.groq import GroqInstrumentor


tracer = Tracer(project_name="groq_project")
GroqInstrumentor().instrument()

Always initialize the Tracer before calling GroqInstrumentor().instrument() to ensure proper trace routing.

Groq uses an OpenAI-compatible API, so you can also use the OpenAI SDK with Groq's base URL and trace it using the OpenAI integration.

On this page