respan-instrumentation-vertexai captures calls made through the Google Vertex AI Python SDK and sends them to Respan through the unified OTEL pipeline.
The package patches vertexai.generative_models.GenerativeModel and ChatSession methods, including sync calls, async calls, and streaming responses. It emits canonical gen_ai.*, llm.*, and traceloop.entity.* attributes for Respan chat logs.
Version: 0.1.0 | Python: >=3.11, <3.14
The main instrumentor class. Implements the Instrumentation protocol.
LLM spans include:
Use propagate_attributes() to attach per-request metadata to all spans:
These are implementation details, not part of the public API: