Skip to main content
Python auto-instrumentation library for VertexAI SDK and the Google Cloud AI Platform. Traces are fully OpenTelemetry compatible and can be sent to any OpenTelemetry collector for viewing, such as Arize Phoenix.

Installation

Quickstart

Install dependencies:

Start Phoenix server

Start the phoenix server so that it is ready to receive traces. The phoenix server runs entirely on your machine and does not send data over the internet.

Setup instrumentation

Instrumenting vertexai is simple:

Use Vertex AI

Now, all calls by generative_models are instrumented and can be viewed in the phoenix UI:
Visit the Phoenix app at http://localhost:6006 to see your traces.

More Info