Skip to main content

OpenTelemetry Ollama instrumentation

Project description

OpenTelemetry Ollama Instrumentation

This library allows tracing calls to any of Ollama'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.29.1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.29.1.tar.gz
Algorithm Hash digest
SHA256 58f490bc186690d6261a6c1818e040c3eeaefa701fda9dac57061cc9827611ab
MD5 976dbe66b346235af96415fd5d279ca0
BLAKE2b-256 ed81b386f966ff68517b69ec0cb9559b5a90e2ab7f734fe2ac232560fc3cae09

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.29.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab25f85147430e054b3b6e75652e0ee838acb4af8372cdd23f3f3b523c294d9c
MD5 949c48e4ea2fb25797d9c5a6aa87a33d
BLAKE2b-256 403df1b5ec6210fc424235ed1843c5f08b822763885386ed71cb4c99c2857bb9

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