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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.25.5.tar.gz
Algorithm Hash digest
SHA256 f022059b1b0858cfe6dc4f7574d1f89df8794ec43cb2003f4069f2102ad9cc40
MD5 5f4085a126ea6bdf9078c9d0664d97fd
BLAKE2b-256 86f88cc84bfe53246b8b5e98786d2bc1824fbe0971d2339457225842bb2f3af2

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.25.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e28c1ff1c9bef9e8d53141424192c1347695196760ab1d2e808677d556dd4019
MD5 619db7fb53be1d730fc35f30e4cbdfd8
BLAKE2b-256 4623e5b88b642287422ffdf9a0f930881e170792ad97d749e9a3b2f5682ad2ee

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