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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.33.12.tar.gz
Algorithm Hash digest
SHA256 4cd012503f8d692453645353231e216c756fc926bdd3142e8c97fc8e87cbe06f
MD5 df5aec5d0ed4d6456f6aa2b13446ef98
BLAKE2b-256 d9aae9c0f903b8ae750794688f82a00ac0b7ab00a42e57d7c279738b5a80a0ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_ollama-0.33.12.tar.gz:

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.33.12-py3-none-any.whl
Algorithm Hash digest
SHA256 ed5313f45f5d46e17d93096eba91ed6338abf535cf2d2eca648d0e2d621e9d6b
MD5 419cfa71907ec2d24a4f38481f5dcf9b
BLAKE2b-256 30585f11976bc5fde11390e709d96c757e1b21ff73faf88d5b0fd97ace56b061

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_ollama-0.33.12-py3-none-any.whl:

Publisher: release.yml on traceloop/openllmetry

Attestations:

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