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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.25.4.tar.gz
Algorithm Hash digest
SHA256 31daed34ea0ed3f37b32d2fd44cea74efe6f05f9cc1dcc950bf74af1d3552014
MD5 e4e0d501cf96d42974b3332d655dd4a1
BLAKE2b-256 2d5f166fed366da7b028e537693811c4d19084e1a7cdf4e65dface3e454279c1

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.25.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8091db0868a2b8cc6c3f384919d4eddf807f6eef9c187513da0705fcf056f343
MD5 15d31748948aae84b6bf339e419a74a1
BLAKE2b-256 8b12a6e5bda722c22f84cd14bca90d07281f58a7749f60fdf753c930bced54fc

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