Skip to main content

OpenTelemetry Ollama instrumentation

Project description

OpenTelemetry Ollama Instrumentation

This library allows tracing calls to any of Cohere's endpoints sent with the official Ollama Python Library.

Installation

pip install opentelemetry-instrumentation-ollama

Example usage

from opentelemetry.instrumentation.ollama import OllamaInstrumentor

OllamaInstrumentor().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


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_ollama-0.21.0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.21.0.tar.gz
Algorithm Hash digest
SHA256 136bbfbf7417a76b4909b312d0b6e8dd324f6207372d6bbc40dc375a21f12881
MD5 944e97f4aa57ed757288b3056eafe7f9
BLAKE2b-256 1c6c26a76cab0e6489476e5ad66804065059c4c13bde6ef8cc179d40d7723d41

See more details on using hashes here.

Provenance

File details

Details for the file opentelemetry_instrumentation_ollama-0.21.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.21.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc63550ab6eb5b1fb45832d5bee45f52bf33e41eb6ae0c679f0e73c8ffc4231b
MD5 86b6a18bf85a92b2880fb424ff8718ca
BLAKE2b-256 7a7abf74ede0eb330df66b7f0abda3f894ee1d4137c09a352bf3e8958da72bde

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