Learn how to instrument Google Vertex AI API calls with the LangWatch Python SDK using OpenInference
langwatch.setup()
(Recommended)VertexAIInstrumentor
to the instrumentors
list in the langwatch.setup()
call. LangWatch will then manage the lifecycle of this instrumentor.
TracerProvider
configured in your application, you can use the instrumentor’s instrument()
method directly. LangWatch will automatically pick up the spans generated by these instrumentors as long as its exporter is part of the active TracerProvider
.