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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.21.5.tar.gz
Algorithm Hash digest
SHA256 89dafd19ee795e350a0060f7d626e6fcc6bee93ad2be45aab422e6e5ccab6040
MD5 9d2bbd8ed7dda571ad274911b88093e1
BLAKE2b-256 4bf7dbf63f055e5e983384642e90de86f5340f13162171d8c9fb89b94f429789

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.21.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8485bc7b2560ae5b90b6837cb1e91fe1eb15e0f0f262168e5d992809c032ab02
MD5 1cf9f170a2edb0c3c29453de126164fa
BLAKE2b-256 98f21a08c8653a7fa7408b3bcf76ea36f580b484292af677bdf0806d210f8c22

See more details on using hashes here.

Provenance

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