OpenTelemetry Vertex AI instrumentation
Project description
OpenTelemetry VertexAI Instrumentation
This library allows tracing VertexAI prompts and completions sent with the official VertexAI library.
Installation
pip install opentelemetry-instrumentation-vertexai
Example usage
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
.
TRACELOOP_TRACE_CONTENT=false
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file opentelemetry_instrumentation_vertexai-0.33.9.tar.gz
.
File metadata
- Download URL: opentelemetry_instrumentation_vertexai-0.33.9.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e8b955b618ec4085b8d341c21191d2a240f2b8396817af60b6e069118c3c034 |
|
MD5 | 1806124e07b82d07ca5a955bab3eb258 |
|
BLAKE2b-256 | b085b037e0bf0d7cfcf5400afe64036a021f864af80d45c76eaaeff32c39bf71 |
Provenance
The following attestation bundles were made for opentelemetry_instrumentation_vertexai-0.33.9.tar.gz
:
Publisher:
release.yml
on traceloop/openllmetry
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
opentelemetry_instrumentation_vertexai-0.33.9.tar.gz
- Subject digest:
4e8b955b618ec4085b8d341c21191d2a240f2b8396817af60b6e069118c3c034
- Sigstore transparency entry: 146839845
- Sigstore integration time:
- Predicate type:
File details
Details for the file opentelemetry_instrumentation_vertexai-0.33.9-py3-none-any.whl
.
File metadata
- Download URL: opentelemetry_instrumentation_vertexai-0.33.9-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53711222b395fbd2f8b3233abc1aba20cb363898ba88f3d7439d4238bc0157bf |
|
MD5 | 0e66d31ace345769c61e2b912b5dac78 |
|
BLAKE2b-256 | c12027ff94133bc56825e6be07ce404aa2435a07e103077a10a4026bdce60570 |
Provenance
The following attestation bundles were made for opentelemetry_instrumentation_vertexai-0.33.9-py3-none-any.whl
:
Publisher:
release.yml
on traceloop/openllmetry
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
opentelemetry_instrumentation_vertexai-0.33.9-py3-none-any.whl
- Subject digest:
53711222b395fbd2f8b3233abc1aba20cb363898ba88f3d7439d4238bc0157bf
- Sigstore transparency entry: 146839884
- Sigstore integration time:
- Predicate type: