Vertex AI
Vertex AI is Google Cloud’s managed platform for foundation models including Gemini, PaLM, and third-party models. Respan gives you full observability over every Vertex AI call, streamed response, and tool invocation — and gateway routing through the Respan endpoint.
Set up Respan
Create an account at platform.respan.ai and grab an API key. For gateway, also add credits or a provider key.
Run npx @respan/cli setup to set up with your coding agent.
Example projects
Tracing
Gateway
Setup
Set environment variables
GOOGLE_APPLICATION_CREDENTIALS is used for Vertex AI auth. RESPAN_API_KEY is used to export traces to Respan.
View your trace
Open the Traces page to see your auto-instrumented Vertex AI spans with prompts, tokens, and cost.
Configuration
Attributes
In Respan()
Set defaults at initialization — these apply to all spans.
With propagate_attributes
Override per-request using a context scope.