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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_vertexai-0.33.12.tar.gz
Algorithm Hash digest
SHA256 a4ff534f24d4e1caecc621bea1ad19905bafc8ebf2fd1506e9eb1ae8f2a7831a
MD5 b02a39ded0faa6f598725d4246843f4f
BLAKE2b-256 7099355c73ba6fb1679f32caa5579d9956dd3e0d40fa2205b41932694bd54696

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_vertexai-0.33.12-py3-none-any.whl
Algorithm Hash digest
SHA256 cf61cdc08bb6cb4dcbb0b59d1d0432cc1b0b7bee8fa25c69ae4886cf048204c4
MD5 55e460080b464cf2e1b9736e7abf40a8
BLAKE2b-256 5ce604cb7853674e4412d929d7c3172b073b402b3ee8f049e57dce042bdd5a2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_vertexai-0.33.12-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