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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.25.6.tar.gz
Algorithm Hash digest
SHA256 1deb7da28dccc7fe27f7a6ab512eb737a11c2c378627c1f7883aff72b30b5aaa
MD5 6e925be7a2208e793a1e5cfa368ea604
BLAKE2b-256 0dc02a0cca6ec98ed6e5b7cd4b107691490cb1f9bf0f92ac576d7a3faeea3bbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.25.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ccbe5f73827f49749bdc4bf783773d416967d55038a05f10511f7de1796081d0
MD5 c68113587f07170bd9c0ae4604a9ec27
BLAKE2b-256 10f38d8e0ff1bd1d9e1d4d70be1a3d6d7281a385dfd601d06cc2e2f2120b8a3e

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