The VertexAI SDK can be instrumented using the openinference-instrumentation-vertexai package.
Install#
Setup#
See Google’s guide on setting up your environment for the Google Cloud AI Platform. You can also store your Project ID in the CLOUD_ML_PROJECT_ID environment variable.
Connect your application to Phoenix with the register function:
Run VertexAI#
Observe#
Now that you have tracing setup, all invocations of Vertex models will be streamed to your running Phoenix for observability and evaluation.

