Skip to content
Judgment Labs
Esc
↑↓navigate↵open⌘Jpreview
On this page

Vertex AI Integration

If you use Google Cloud Vertex AI within your application, you can trace, monitor, and analyze them with Judgment using VertexAIInstrumentor.

OpenTelemetry

pip install opentelemetry-instrumentation-vertexai
from judgeval import Tracer
# Make sure you installed the dependency: opentelemetry-instrumentation-vertexai
from opentelemetry.instrumentation.vertexai import VertexAIInstrumentor

Tracer.init(project_name="vertexai_project")
Tracer.registerOTELInstrumentation(VertexAIInstrumentor())

Was this page helpful?