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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.14.2.tar.gz
Algorithm Hash digest
SHA256 607fb16759732e4ac74b965a1d1d0f300c5e3d64ecbc731a154d027bff1f38df
MD5 74722f1aca2e98458dde334faf973c2d
BLAKE2b-256 697337775b5ae0b7de8766ebd5ba4d0787aaab1e1641d701dc17b56f6b8b85c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.14.2-py3-none-any.whl
Algorithm Hash digest
SHA256 64a204d14d62301cdb770627cc37a6340c5615517a031952b33ccd0d9e55cd73
MD5 d2b073766bab2d619f0fd4dd99bc9454
BLAKE2b-256 24cc884cb215c757a24be7e17b3f69d2866938f68e15474c696b30ec9afa1593

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