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

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_cohere-0.0.2.tar.gz
Algorithm Hash digest
SHA256 39a771a1b11ce24b50a6edb26b43b07b3d03630188253faad06b66509b6504ba
MD5 99a898a592ca9264e9b3a2906365d7ac
BLAKE2b-256 db9fd516a7634ea771e811242f95f54283fe1a82c494e1654f2706529b45e39d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_cohere-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2d605d31f1e37649cec63842d348dbb2a5dae9b46119acab39a4c111119a7aae
MD5 781af5bcba3086bb624571681a735119
BLAKE2b-256 ab3151e0a6b29d5ce39c2b61b93f9d95c20e20293ab374498d702b8e65ce0a4f

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