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
File details
Details for the file opentelemetry_instrumentation_ollama-0.29.1.tar.gz
.
File metadata
- Download URL: opentelemetry_instrumentation_ollama-0.29.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58f490bc186690d6261a6c1818e040c3eeaefa701fda9dac57061cc9827611ab |
|
MD5 | 976dbe66b346235af96415fd5d279ca0 |
|
BLAKE2b-256 | ed81b386f966ff68517b69ec0cb9559b5a90e2ab7f734fe2ac232560fc3cae09 |
Provenance
File details
Details for the file opentelemetry_instrumentation_ollama-0.29.1-py3-none-any.whl
.
File metadata
- Download URL: opentelemetry_instrumentation_ollama-0.29.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab25f85147430e054b3b6e75652e0ee838acb4af8372cdd23f3f3b523c294d9c |
|
MD5 | 949c48e4ea2fb25797d9c5a6aa87a33d |
|
BLAKE2b-256 | 403df1b5ec6210fc424235ed1843c5f08b822763885386ed71cb4c99c2857bb9 |