# opentelemetry-instrumentation-vertexai

> OpenTelemetry Vertex AI instrumentation

- **URL**: https://www.freshcrate.ai/projects/opentelemetry-instrumentation-vertexai
- **Author**: pypi
- **Category**: Prompt Engineering
- **Latest version**: `0.61.0` (2026-05-31)
- **License**: Unknown
- **Source**: https://github.com/traceloop/openllmetry/tree/main/packages/opentelemetry-instrumentation-vertexai
- **Homepage**: https://pypi.org/project/opentelemetry-instrumentation-vertexai/
- **Language**: Python
- **GitHub**: 7,025 stars, 936 forks
- **Registry**: pypi (`opentelemetry-instrumentation-vertexai`)
- **Tags**: `pypi`

## Description

# OpenTelemetry VertexAI Instrumentation

<a href="https://pypi.org/project/opentelemetry-instrumentation-vertexai/">
    <img src="https://badge.fury.io/py/opentelemetry-instrumentation-vertexai.svg">
</a>

This library allows tracing VertexAI prompts and completions sent with the official [VertexAI library](https://github.com/googleapis/python-aiplatform).

## Installation

```bash
pip install opentelemetry-instrumentation-vertexai
```

## Example usage

```python
from opentelemetry.instrumentation.vertexai import VertexAIInstrumentor

VertexAIInstrumentor().instrument()
```

## Privacy

**By default, this instrumentation logs prompts, completions, and embeddings to span attributes**. This gives you a clear visibility into how your LLM application is working, and can make it easy to debug and evaluate the quality of the outputs.

However, you may want to disable this logging for privacy reasons, as they may contain highly sensitive data from your users. You may also simply want to reduce the size of your traces.

To disable logging, set the `TRACELOOP_TRACE_CONTENT` environment variable to `false`.

```bash
TRACELOOP_TRACE_CONTENT=false
```

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `0.61.0` | 2026-05-31 | High | ## v0.61.0 (2026-05-31)  ### Feat  - **sdk**: expose use_legacy_attributes via Traceloop.init() (#4133) - **bedrock**: add async support for aioboto3 (#4135) - **openai-agents**: GenAI semconv compliance (#3837)  ### Fix  - **openai**: instrument responses.parse() for structured-output tracing (#4198) - **langchain,anthropic,groq,mistralai,bedrock,ollama,sagemaker,together**: record exceptions and set ERROR status on failed spans (#4101) - **vector-db**: emit consistent embeddings_count, result_ |
| `0.60.0` | 2026-04-21 | Low | Imported from PyPI (0.60.0) |
| `0.59.2` | 2026-04-16 | High | ## v0.59.2 (2026-04-16)  ### Fix  - **traceloop-sdk**: avoid calling async json methods in JSONEncoder (#3968)  [main a9f5e2d3] bump: version 0.59.1 → 0.59.2  64 files changed, 69 insertions(+), 63 deletions(-) |
| `0.59.1` | 2026-04-15 | High | ## v0.59.1 (2026-04-15)  ### Fix  - **langchain**: detach existing SpanHolder token before overwrite in _create_llm_span (#3958)  [main 25189adc] bump: version 0.59.0 → 0.59.1  64 files changed, 69 insertions(+), 63 deletions(-) |
| `0.59.0` | 2026-04-13 | Medium | ## v0.59.0 (2026-04-13)  ### Feat  - **traceloop-sdk**: Add guardrails (#3649)  [main b80f109b] bump: version 0.58.1 → 0.59.0  64 files changed, 69 insertions(+), 63 deletions(-) |
| `0.58.1` | 2026-04-12 | Medium | ## v0.58.1 (2026-04-12)  ### Fix  - **evaluators**: update route api (#3977)  [main 21d89e4f] bump: version 0.58.0 → 0.58.1  64 files changed, 69 insertions(+), 63 deletions(-) |
| `0.58.0` | 2026-04-09 | Medium | ## v0.58.0 (2026-04-09)  ### Feat  - **gemini**: migrate google-generativeai to latest OTel GenAI semantic conventions (#3840)  [main 786d49f9] bump: version 0.57.0 → 0.58.0  64 files changed, 69 insertions(+), 63 deletions(-) |
| `0.57.0` | 2026-03-30 | Medium | ## v0.57.0 (2026-03-30)  ### Feat  - **bedrock**: Instrumentation adjustment for Otel GenAI semconv support  (#3845)  [main 0a258034] bump: version 0.56.1 → 0.57.0  64 files changed, 69 insertions(+), 63 deletions(-) |
| `0.56.1` | 2026-03-30 | Medium | ## v0.56.1 (2026-03-30)  ### Fix  - **SDK + Agno**: set gen_ai.tool.name on @tool() decorator and Agno tool spans (#3904)  [main bb95db9d] bump: version 0.56.0 → 0.56.1  64 files changed, 69 insertions(+), 63 deletions(-) |
| `0.56.0` | 2026-03-30 | Medium | ## v0.56.0 (2026-03-30)  ### Feat  - **crewai**: trigger version bump for GenAI semconv compliance (#3903)  [main 78d364b9] bump: version 0.55.0 → 0.56.0  64 files changed, 69 insertions(+), 63 deletions(-) |

## Citation

- HTML: https://www.freshcrate.ai/projects/opentelemetry-instrumentation-vertexai
- Markdown: https://www.freshcrate.ai/projects/opentelemetry-instrumentation-vertexai.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/opentelemetry-instrumentation-vertexai/deps

_Generated by freshcrate.ai. Indexes pypi releases for AI-agent ecosystem packages._
