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 syntrac-opentelemetry-instrumentation-cohere

Example usage

from syntrac_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 SYNTRAC_TRACE_CONTENT environment variable to false.

SYNTRAC_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 syntrac_opentelemetry_instrumentation_cohere-0.0.1.tar.gz.

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_cohere-0.0.1.tar.gz
Algorithm Hash digest
SHA256 92b54c7b02df5b45d06af76f693b2263206ee40a9f475bb3c5c9477ab5d89f27
MD5 954d6dbdff60b61964d3e4b1c2513a9c
BLAKE2b-256 c647ea6104fdf078e34c72a1359aa034f3199e5b133ba31098e2d99ade8064a2

See more details on using hashes here.

File details

Details for the file syntrac_opentelemetry_instrumentation_cohere-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_cohere-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ce34beec4ae62ff9d4e8f57b18de1d8b1c05b402beff9645cc001fc1259a3a4
MD5 0dd6ad5a1116d93609db185bfb3bc074
BLAKE2b-256 beb59e56e1a3415972a51e32070e99f2c5eef63c9b72977fb04c664fb103c03f

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