Skip to main content

OpenTelemetry Together AI instrumentation

Project description

OpenTelemetry Together AI Instrumentation

This library allows tracing calls to any of Together AI's endpoints sent with the official Together AI Library.

Installation

pip install opentelemetry-instrumentation-together

Example usage

from opentelemetry.instrumentation.together import TogetherAiInstrumentor

TogetherAiInstrumentor().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


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_together-0.22.0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_together-0.22.0.tar.gz
Algorithm Hash digest
SHA256 f5a538783f2c4cc5c7bd1bfcc9775122a1127e0dd72346dc94b3a77db5c86ba2
MD5 2dca0945d1ada4b5b7bc730f03868575
BLAKE2b-256 f1eee602ac6ef0f8279e8723b080443f57c1650165cc882b284de6269e531e7c

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_together-0.22.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_together-0.22.0-py3-none-any.whl
Algorithm Hash digest
SHA256 423fe2b16ef72949247e1516df5cd21ff6ef7530f1f82680e9267ca48c5136ce
MD5 c7b86f02e04a0ee4149120b602242578
BLAKE2b-256 a1e3a22c244ec7167f96251136059d81be84bc65bb673a8c2ab8bf4bf46c56f7

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