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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.25.1.tar.gz
Algorithm Hash digest
SHA256 6c8ff1f7978b1fa73270141183af30f20eff61545fd77d9078e780e4aae6552a
MD5 6ac7dcf494550ee76c892807a5fe0b04
BLAKE2b-256 5a6b9f8bb12c921c339ae3053e6154e083ba5671ec1e8b07038c02dd3e242ff6

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.25.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7490bf893c8449e7d1a7fb37f26f2ac81ed7ee10e2f75e409a7da1631dcad275
MD5 5383647cf31743ba0fef2d059b851383
BLAKE2b-256 9a2477fff95454f2d9aff884b0f24a7fe6ec52be988c6e63057931ef6db23a72

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