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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.26.2.tar.gz
Algorithm Hash digest
SHA256 07625070e989ee3278b564b3892cd21f7ad02679743203078b1042d92494bb83
MD5 fecca9310010186848d8bea248bcfae4
BLAKE2b-256 6820a65f96e83661e58f9fc6f2ded197a4888ac14e39b5b82963f08a722eb96f

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.26.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0a6dbb3b6286076755b3a895afb53aeed4b9e55ded6cde7fdaa45fc495e98493
MD5 19ca96e967411242fd74f8cffcce8393
BLAKE2b-256 0006854030697902afaad9d5afbef2dbf1247e0caf7a6083997677a4aedf1478

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