respan-instrumentation-vertexai
Respan instrumentation plugin for the Google Vertex AI Python SDK.
The package patches vertexai.generative_models.GenerativeModel and
ChatSession generation methods and emits canonical Respan chat spans through
the active OTEL pipeline. It captures sync calls, async calls, streamed
responses, prompt and completion content, token usage, tool declarations, and
model function calls.
Installation
pip install respan-ai respan-instrumentation-vertexai google-cloud-aiplatform
Usage
import vertexai
from respan import Respan
from respan_instrumentation_vertexai import VertexAIInstrumentor
from vertexai.generative_models import GenerativeModel
respan = Respan(instrumentations=[VertexAIInstrumentor()])
vertexai.init(project="your-gcp-project", location="us-central1")
model = GenerativeModel("gemini-2.0-flash")
response = model.generate_content("Say hello in three languages.")
print(response.text)
respan.flush()
Metadata
Release files for respan-instrumentation-vertexai 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| respan_instrumentation_vertexai-0.1.1.tar.gz | 11.4 kB | Without provenance | Details for respan_instrumentation_vertexai-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| respan_instrumentation_vertexai-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for respan_instrumentation_vertexai-0.1.1-py3-none-any.whl |
Total release size: 25.7 kB
Release files / respan_instrumentation_vertexai-0.1.1.tar.gz
| Download URL | respan_instrumentation_vertexai-0.1.1.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b547ea3490647d56828e66adc3e1d10d34e8040ef1e4c7b05068d7bf2d9a4b6
|
|
BLAKE2b-256 checksum How to use checksums |
558465031afec72249ffee0deaf481addff914526c66b9a5365cbfe7bc5c029b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / respan_instrumentation_vertexai-0.1.1-py3-none-any.whl
| Download URL | respan_instrumentation_vertexai-0.1.1-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3273471231f5c84a2e491950eacf4c713ff8c87bf5a07e9831e150c0125b9de5
|
|
BLAKE2b-256 checksum How to use checksums |
3f88ebcab5e3993cb2a7991f5ffc1d3aaf6051761ad6944c6c8b08332440fa0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for respan-instrumentation-vertexai 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.