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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.33.9.tar.gz
Algorithm Hash digest
SHA256 f7a5f8ee2de3b693a668683f24cee900611cfe2138f0e7a153759a6cefc81b9a
MD5 d6cb7e8dd0f5dcf47424446046cf30c7
BLAKE2b-256 05ce49aec458a72c83fbffb232c24742343a53bf409b9515972af25692a6c70b

See more details on using hashes here.

Provenance

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

Publisher: GitHub
  • Repository: traceloop/openllmetry
  • Workflow: release.yml
Attestations:
  • Statement type: https://in-toto.io/Statement/v1
    • Predicate type: https://docs.pypi.org/attestations/publish/v1
    • Subject name: opentelemetry_instrumentation_ollama-0.33.9.tar.gz
    • Subject digest: f7a5f8ee2de3b693a668683f24cee900611cfe2138f0e7a153759a6cefc81b9a
    • Transparency log index: 146839868
    • Transparency log integration time:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_ollama-0.33.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8d8d0fc8535306fa26f9099052e371bd7013990d497250b8cc6438bfd271dd73
MD5 6842b1167a71def56faee565754bf9e1
BLAKE2b-256 5ebf55668afce3984a094a2fcc26532e9a6a2541b80c6924b11f46f3ed715dbe

See more details on using hashes here.

Provenance

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

Publisher: GitHub
  • Repository: traceloop/openllmetry
  • Workflow: release.yml
Attestations:
  • Statement type: https://in-toto.io/Statement/v1
    • Predicate type: https://docs.pypi.org/attestations/publish/v1
    • Subject name: opentelemetry_instrumentation_ollama-0.33.9-py3-none-any.whl
    • Subject digest: 8d8d0fc8535306fa26f9099052e371bd7013990d497250b8cc6438bfd271dd73
    • Transparency log index: 146839929
    • Transparency log integration time:

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