Lightweight tracing SDK for LLM applications
Project description
usetrace
Lightweight tracing SDK for LLM applications. Add @tracer.observe() to your functions and get visual attribution maps that answer "Why did the LLM say that?"
Install
pip install usetrace
Quick Start
from usetrace import Trace
tracer = Trace(api_key="your-key", base_url="https://api.use-trace.com")
@tracer.observe(span_type="llm", model="gpt-4o")
def my_llm_function(prompt: str) -> str:
return openai.chat.completions.create(...)
Every traced call is captured — inputs, outputs, latency, token usage — and sent to the Trace dashboard where you can inspect full execution trees and per-token attribution maps.
Dashboard
Sign up and explore your traces at use-trace.com.
License
Apache-2.0
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file usetrace-0.1.0.tar.gz.
File metadata
- Download URL: usetrace-0.1.0.tar.gz
- Upload date:
- Size: 20.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ffddeb3f98d397a6ce09eb64fe7b64d3dac8ae6f6a2fdf36cf548e33faeab98
|
|
| MD5 |
40cc7ce5d01115024ce849d23b064694
|
|
| BLAKE2b-256 |
d9b14b6974ccc70b38c9a44934456def5b6af69a738d9aee8b31031b22720288
|
File details
Details for the file usetrace-0.1.0-py3-none-any.whl.
File metadata
- Download URL: usetrace-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12c0156514358d89a51fbe01cbf69cc28dc057cff41e8819817e7cc0f9002d92
|
|
| MD5 |
45a1254afe310d719e8e64945c8e264a
|
|
| BLAKE2b-256 |
c91178cae5a1646a6f34930f5d972cb720e7f32537861dc8009d1bdc8e73c853
|