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
Release files for opentelemetry-instrumentation-ollama 0.62.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| opentelemetry_instrumentation_ollama-0.62.3.tar.gz | 176.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| opentelemetry_instrumentation_ollama-0.62.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 187.4 kB
Release files / opentelemetry_instrumentation_ollama-0.62.3.tar.gz
| Download URL | opentelemetry_instrumentation_ollama-0.62.3.tar.gz |
|---|---|
| Size | 176.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
701ae0a76746be64776c434cac9bec72d9b9932fc73abdb6171b7ddd558f6983
|
|
BLAKE2b-256 checksum How to use checksums |
441e898e479652b4cea2673e647585285e57caa18a76912b58148b17116e99d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency logRelease files / opentelemetry_instrumentation_ollama-0.62.3-py3-none-any.whl
| Download URL | opentelemetry_instrumentation_ollama-0.62.3-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5377788b0f7bdad62ca0154ee1b352f82da9add26b6b1895d5186314284b95bc
|
|
BLAKE2b-256 checksum How to use checksums |
77dba89a3819805539120c294fb28c4b6fa1a002aaa7e14c8928e5754e6ac973
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency log