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.5.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_vertexai-0.33.5.tar.gz
Algorithm Hash digest
SHA256 0dd887b50259a2d8a04882442fdb4aef055443db2381da1449af626e4e4ff9f4
MD5 84b0ac41019248b3d992d1efe4567a07
BLAKE2b-256 134b511c5f85bf9b5e955de1a14bec6f6932966ee1f485ca36f985c2ee4ff2f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_vertexai-0.33.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dc94d7d117fb257ba2caa31c7e470fbb9c6339e0e9a1d63f9ceb53b845bc5a7c
MD5 3a964ae967cef3cd70c4ab4e68682d6a
BLAKE2b-256 31b955a0282fe071093a93d265f1dd2fa7eb216c26dec952f46adcdf260e3bdd

See more details on using hashes here.

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