Vertex AI (tracing)
Vertex AI (tracing)
Vertex AI is Google Cloud’s managed platform for foundation models, including Gemini and third-party models. Respan captures Vertex AI generation, streaming, chat, prompt, completion, token, and workflow spans.
This tracing setup uses your Google Cloud credentials directly. To route requests through Respan instead, use the Vertex AI gateway setup.
Set up Respan
Create an account at platform.respan.ai and grab an API key.
Run npx @respan/cli setup to set up with your coding agent.
Use Respan Gateway
See Vertex AI gateway setup to route calls through the Respan gateway.
Example projects
Setup
Configuration
Attributes
In Respan()
Set defaults at initialization. These apply to all spans.
With propagate_attributes
Override per-request attributes using a context scope.
Captured operations
GenerativeModel.generateContent()GenerativeModel.generateContentStream()ChatSession.sendMessage()ChatSession.sendMessageStream()