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 syntrac-opentelemetry-instrumentation-vertexai

Example usage

from syntrac_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 SYNTRAC_TRACE_CONTENT environment variable to false.

SYNTRAC_TRACE_CONTENT=false

Project details


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 syntrac_opentelemetry_instrumentation_vertexai-0.0.1.tar.gz.

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_vertexai-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7433f10905c7b34a7c0a353b8ee7ccd265eb005f33d33d9acb308f143617b052
MD5 0481f049a501c928dbcdac87bc9c1c17
BLAKE2b-256 cb58c47f88ab41f1e9f2b1478de150768b9a1b633d2a908250ccc1de6fd97ea5

See more details on using hashes here.

File details

Details for the file syntrac_opentelemetry_instrumentation_vertexai-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_vertexai-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d966b0e1280e979f75a21e2fb86e6d00bce1ab8717ff8838500ba03993bbf55
MD5 66bae0fdd37d9cc68771b763acff9e4f
BLAKE2b-256 8d9947752d08231f757a38101db605a3bfb9ce3c8d7d71769a350419dfcb151a

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