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

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_vertexai-0.0.2.tar.gz
Algorithm Hash digest
SHA256 259f4459dbe69182ba10c432a36ec9cdba2e64b5cbe6d29d378188ef74292a45
MD5 ab62ac60a0874a66ac4466327a2f6729
BLAKE2b-256 5e3401141adbcd36a74e2c570028c9ad3ea9b917d9ce65036ad8faa6495ba0db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_vertexai-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 69813884357287b72657786f70d8254418c39c26be2f861b7746a9d75bffca77
MD5 930ca3cedec22f8f3817d544e1ffaa17
BLAKE2b-256 805fba3653ae693715484e43c10b4e6e5b2a12eafbc0510f08ac689daf1341af

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