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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_vertexai-0.33.8.tar.gz
Algorithm Hash digest
SHA256 aa1f14f8656348bf4227ba98c5ebd8b9fe5a51a4f0ea608e0aa728783d1d1e2d
MD5 3070a251ba7cb81f35638638c93791a4
BLAKE2b-256 f67d8b2c97227628e2382f19b37a65360d75226ec6e554b58b0322f5426c8f52

See more details on using hashes here.

Provenance

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

Publisher: GitHub
  • Repository: traceloop/openllmetry
  • Workflow: release.yml
Attestations:
  • Statement type: https://in-toto.io/Statement/v1
    • Predicate type: https://docs.pypi.org/attestations/publish/v1
    • Subject name: opentelemetry_instrumentation_vertexai-0.33.8.tar.gz
    • Subject digest: aa1f14f8656348bf4227ba98c5ebd8b9fe5a51a4f0ea608e0aa728783d1d1e2d
    • Transparency log index: 146770043
    • Transparency log integration time:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_vertexai-0.33.8-py3-none-any.whl
Algorithm Hash digest
SHA256 636677d06056de96b3f91ee002c9bf6ed761e92b467a3d5c78bf452a11935efd
MD5 ef0f87215146dd8fe5ff0c2cdba4199e
BLAKE2b-256 3c84453bcd3628a0e7dd9d556876293b35937382be73769895276a3fb6be2be8

See more details on using hashes here.

Provenance

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

Publisher: GitHub
  • Repository: traceloop/openllmetry
  • Workflow: release.yml
Attestations:
  • Statement type: https://in-toto.io/Statement/v1
    • Predicate type: https://docs.pypi.org/attestations/publish/v1
    • Subject name: opentelemetry_instrumentation_vertexai-0.33.8-py3-none-any.whl
    • Subject digest: 636677d06056de96b3f91ee002c9bf6ed761e92b467a3d5c78bf452a11935efd
    • Transparency log index: 146770083
    • Transparency log integration time:

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