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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_together-0.23.0.tar.gz
Algorithm Hash digest
SHA256 b8ed58550a939acd1c964e9a393b22079eee7e903176499ccca3301c81c542df
MD5 a269d7a90afbc4c31c01a745e8f8367c
BLAKE2b-256 8e7c4671923f944f538a5f98e816d0ba14fb7847ca7726ac3d29c3c8b46fa10e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_together-0.23.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e387319a8affea00e14b28d8b7ce0fcd705023d0c81e442c5a6fcf4b837a99a8
MD5 d834a8127abd22198ff99571935c2da0
BLAKE2b-256 022836679b25b5c127085552f118901ec97398f4a16414d3bb8c152ec738e28f

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