Skip to main content

OpenTelemetry Cohere instrumentation

Project description

OpenTelemetry Cohere Instrumentation

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

Installation

pip install opentelemetry-instrumentation-cohere

Example usage

from opentelemetry.instrumentation.cohere import CohereInstrumentor

CohereInstrumentor().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_cohere-0.30.1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.30.1.tar.gz
Algorithm Hash digest
SHA256 dbd9233be8619ae9ff9e15c76ee52feca52b23d5fda1383bb36a53c0c9ef2d52
MD5 e73574bf21c29d8bd1ab0e866f8068cf
BLAKE2b-256 2dabfd7b8a214bdc5cdd0dbd169cc1faaba465167e181256cc835885546285e2

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_cohere-0.30.1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.30.1-py3-none-any.whl
Algorithm Hash digest
SHA256 afbec2c5f15a557c3944a4c5b39a00221add361c22e6ede209a01794812684be
MD5 b2346b012a65e04e068250b791526cb7
BLAKE2b-256 cffd6cb0a9391d02e1726affc9ba26229e8bca6a315c3614776c1af897009c56

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