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


Release history Release notifications | RSS feed

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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_instrumentation_ollama-0.39.4.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.39.4.tar.gz
Algorithm Hash digest
SHA256 6d44fb79fbcfed579b072bf7db5ee34488055a83cc89655e5315ede07597d4b1
MD5 495e620fff83c12c34ed11102dcac732
BLAKE2b-256 9e491ec0e3e864dfbab2e75b1d1acd1aefa5ba068845f84cd04a4537635f98e1

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.39.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1ece2ebf71ff426b905b5565f878f4a775014e3d5c9338e7ed762549a9078202
MD5 9f81bd6bd0ea12383c75c35dad5fbdef
BLAKE2b-256 accc05568d724696bd646418de9be65c0644282c6a3f2883d9d05b29fa49fe40

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page