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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.28.1.tar.gz
Algorithm Hash digest
SHA256 0c269ca97203bda0a2b34a704928401fe56fcde86dd16380a861e9b73edea50f
MD5 2615679970781a8d5f1cb354f63dcc9c
BLAKE2b-256 0cd701259088ff3321c9e53eaa4f4d15c7f4418cd61cfc95fd5306410ee784ed

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.28.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8498222fe585dc815b8fb8c7a436166c7bf7f599385446777f05307c7ee0a59
MD5 bdadfb2e0ca6f771508f82d5675f06c2
BLAKE2b-256 b31497bea3205a5726069dd064f9f438f36f0fac015dd9c2d9aa71a69e430dc3

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