Skip to main content

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

File hashes

Hashes for opentelemetry_instrumentation_vertexai-0.33.9.tar.gz
Algorithm Hash digest
SHA256 4e8b955b618ec4085b8d341c21191d2a240f2b8396817af60b6e069118c3c034
MD5 1806124e07b82d07ca5a955bab3eb258
BLAKE2b-256 b085b037e0bf0d7cfcf5400afe64036a021f864af80d45c76eaaeff32c39bf71

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_vertexai-0.33.9.tar.gz:

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

Details for the file opentelemetry_instrumentation_vertexai-0.33.9-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_vertexai-0.33.9-py3-none-any.whl
Algorithm Hash digest
SHA256 53711222b395fbd2f8b3233abc1aba20cb363898ba88f3d7439d4238bc0157bf
MD5 0e66d31ace345769c61e2b912b5dac78
BLAKE2b-256 c12027ff94133bc56825e6be07ce404aa2435a07e103077a10a4026bdce60570

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_vertexai-0.33.9-py3-none-any.whl:

Publisher: release.yml on traceloop/openllmetry

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page