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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.33.11.tar.gz
Algorithm Hash digest
SHA256 07ebd381cc7ce0d14bc61649e2191f2a65962c609439979447fc8b1d09580310
MD5 1e275b37db8917f22b49548ff22d36b0
BLAKE2b-256 d49fbb8e3d88cf86e1746d3e7488bb23b9e5ac18d30b52eba2b2f87873bf9d10

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_cohere-0.33.11.tar.gz:

Publisher: GitHub
  • Repository: traceloop/openllmetry
  • Workflow: release.yml
Attestations:
  • Statement type: https://in-toto.io/Statement/v1
    • Predicate type: https://docs.pypi.org/attestations/publish/v1
    • Subject name: opentelemetry_instrumentation_cohere-0.33.11.tar.gz
    • Subject digest: 07ebd381cc7ce0d14bc61649e2191f2a65962c609439979447fc8b1d09580310
    • Transparency log index: 147774500
    • Transparency log integration time:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.33.11-py3-none-any.whl
Algorithm Hash digest
SHA256 13c9afab4a9c0a90d33ac1bb7530535b0acee31dc056a53ae78d0daf879fdf26
MD5 2fabca9e9606468f7cc7d4f16186a6b0
BLAKE2b-256 02233efb2fa96f7f65c9b712b4e13d61cd09454e844c6eba9dd87d8b51867bc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_cohere-0.33.11-py3-none-any.whl:

Publisher: GitHub
  • Repository: traceloop/openllmetry
  • Workflow: release.yml
Attestations:
  • Statement type: https://in-toto.io/Statement/v1
    • Predicate type: https://docs.pypi.org/attestations/publish/v1
    • Subject name: opentelemetry_instrumentation_cohere-0.33.11-py3-none-any.whl
    • Subject digest: 13c9afab4a9c0a90d33ac1bb7530535b0acee31dc056a53ae78d0daf879fdf26
    • Transparency log index: 147774535
    • Transparency log integration time:

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